Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3 #417

Merged
merged 115 commits into from
Apr 28, 2017
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
1a3186a
add range to MarkdownParagraph and MarkdownSpan
AviAvni Jun 19, 2016
779e9f2
fix active pattern naming by adding StringPosition module
AviAvni Jul 6, 2016
c7f78e7
fix naming
AviAvni Jul 6, 2016
377f5b1
add names to DUs parameters
AviAvni Jul 6, 2016
16383d8
add start/end line/column to markdown range
AviAvni Jul 8, 2016
2b6f7bb
fixes from tomas code review
AviAvni Jul 12, 2016
6ca4b3f
Minor styling and naming tweaks
tpetricek Aug 1, 2016
9087ca2
Beta release
tpetricek Aug 1, 2016
93376c4
Integrate master chnges
tpetricek Aug 3, 2016
d6c89e6
Merge branch 'master' into version3
tpetricek Aug 3, 2016
3b18ef8
Remove Razor reference from FSharp.Literate
Krzysztof-Cieslak Oct 4, 2016
a9e1f11
Use plugable generator function
Krzysztof-Cieslak Oct 4, 2016
1835675
Add generator to ProcessDirectory
Krzysztof-Cieslak Oct 4, 2016
02dbe75
Use record type
Krzysztof-Cieslak Oct 4, 2016
2fd147c
Remove Razor dependency from FSharp.MetadataFormat
Krzysztof-Cieslak Oct 4, 2016
a41cae3
Small fixes to MetadataFormat
Krzysztof-Cieslak Oct 4, 2016
86ad480
Update comment
Krzysztof-Cieslak Oct 4, 2016
d85c84c
Add RazorMetadataFormat
Krzysztof-Cieslak Oct 4, 2016
6d9b0d2
FSharp.Formatting API returns formated data
Krzysztof-Cieslak Oct 5, 2016
02b474e
Add RazorLiterate API
Krzysztof-Cieslak Oct 5, 2016
999b8a6
Fix CommandLineTool
Krzysztof-Cieslak Oct 5, 2016
a48c4c1
Fix tests
Krzysztof-Cieslak Oct 5, 2016
0d5782e
Add F#.Core reference
Krzysztof-Cieslak Oct 5, 2016
31e8320
Update build script and fsproj
Krzysztof-Cieslak Nov 9, 2016
9e4d8c9
Fix docs generation
Krzysztof-Cieslak Nov 9, 2016
fa1f5ea
Update doc generating
Krzysztof-Cieslak Nov 9, 2016
70255a2
Fix ProcessDirectory
Krzysztof-Cieslak Nov 9, 2016
ca6ebac
Fix generate.fsx
Krzysztof-Cieslak Nov 9, 2016
15465b1
fix caching error by invalidating old cache and printing a warning.
matthid Mar 17, 2017
47acc98
Merge pull request #425 from Krzysztof-Cieslak/remove_Razor
matthid Mar 18, 2017
4154739
update sln contents
cloudRoutine Mar 21, 2017
975b6b9
update test infrastructure
cloudRoutine Mar 22, 2017
26c7782
fix test reversal
cloudRoutine Mar 22, 2017
b529526
adjust target resolution
cloudRoutine Mar 22, 2017
3dfb9ec
adjust target resolution again
cloudRoutine Mar 22, 2017
f4b82c0
paket magic mode
cloudRoutine Mar 22, 2017
6bb556c
use nuget FSharp.Core all projects
cloudRoutine Mar 22, 2017
381216e
fix windows build for vs2017/msbuild15 install
cloudRoutine Mar 22, 2017
21eb2f4
cleanup
cloudRoutine Mar 22, 2017
5add72a
Merge pull request #430 from cloudRoutine/version3-tests
matthid Mar 22, 2017
2a128a6
update paket, packages, and FSharp.Core
cloudRoutine Apr 1, 2017
2af8bfe
update packages
cloudRoutine Apr 2, 2017
d835950
additional token categories
cloudRoutine Apr 2, 2017
18b155c
use FCS semantic classification for tokens
cloudRoutine Apr 2, 2017
b346b4d
update packages
cloudRoutine Apr 2, 2017
d5227c3
update css and load paths
cloudRoutine Apr 2, 2017
1dfe1cb
setup editorconfig
cloudRoutine Apr 14, 2017
4ee32b2
formatting and organization
cloudRoutine Apr 14, 2017
63a52a0
update packages
cloudRoutine Apr 14, 2017
c0e9934
more formatting
cloudRoutine Apr 14, 2017
bdc4cf4
update test api usage
cloudRoutine Apr 14, 2017
fab5861
update project files
cloudRoutine Apr 14, 2017
ae51d4a
update paket and bootstrapper
cloudRoutine Apr 14, 2017
f113638
working vs and commandline build
cloudRoutine Apr 14, 2017
bff1198
update FSharp.Core in /lib/
cloudRoutine Apr 15, 2017
3a66f41
change debug version from portable to full
cloudRoutine Apr 15, 2017
fbe9294
Set NUnit to 3.6.0 for FsUnit Compatibility
cloudRoutine Apr 15, 2017
ea013da
update fsunit api calls
cloudRoutine Apr 15, 2017
28bba86
parameterize CSS class names
cloudRoutine Apr 15, 2017
f99d80d
tweak CSS classes
cloudRoutine Apr 15, 2017
2dc2dc5
update fsunit api calls and paramaterize CSS class usage
cloudRoutine Apr 15, 2017
529c4fb
formatting
cloudRoutine Apr 16, 2017
7301c45
ignore test until FCS supports escaped char colorization
cloudRoutine Apr 16, 2017
e0f0df8
remove commented code, formatting
cloudRoutine Apr 16, 2017
33d8c46
fix cli build
cloudRoutine Apr 16, 2017
dfd2e28
simplify build.fsx
cloudRoutine Apr 16, 2017
e5761c4
fix test xml doc generation
cloudRoutine Apr 16, 2017
e7ca53f
temporarily use custom script host
cloudRoutine Apr 16, 2017
53ccadc
ignore lib dir unless forcibly checked in
cloudRoutine Apr 17, 2017
a144f6d
update test project layout
cloudRoutine Apr 17, 2017
c32937a
update FsUnit api usage
cloudRoutine Apr 17, 2017
e84a823
error handling for assembly loading
cloudRoutine Apr 17, 2017
a6ed59e
unify tests output dir
cloudRoutine Apr 17, 2017
fb09ad0
report loaded assemblies on metadata test failure
cloudRoutine Apr 17, 2017
18d2f3e
update target frameworks
cloudRoutine Apr 17, 2017
4993b17
unify test output into 'tests\bin'
cloudRoutine Apr 17, 2017
f4de496
fix pathing in metadata tests
cloudRoutine Apr 17, 2017
3fe0c85
paket magic mode
cloudRoutine Apr 17, 2017
54e4663
update packages
cloudRoutine Apr 17, 2017
4c31049
update redirects, fix some references files
cloudRoutine Apr 17, 2017
89b9091
add magic mode paket.exe (bootstrapper)
cloudRoutine Apr 17, 2017
34737f4
fix build script error and add app.config to MetadataFormat.Tests
matthid Apr 17, 2017
0698e48
ensure dir
matthid Apr 17, 2017
042f949
fix pattern
matthid Apr 17, 2017
b443c8e
set newline to lf in editorconfig
cloudRoutine Apr 17, 2017
4fbf4f7
fix metadata tests
cloudRoutine Apr 17, 2017
58bb4d6
yield keyword tokens while parsing ident islands
cloudRoutine Apr 17, 2017
d4ce827
match xml doc files case insensitive
cloudRoutine Apr 17, 2017
ac6ab34
fix build
matthid Apr 23, 2017
f610e5f
trigger build
matthid Apr 23, 2017
1eb309a
Merge pull request #432 from cloudRoutine/fcs-only
matthid Apr 23, 2017
0d24f1d
step 1 update fake
matthid Apr 24, 2017
084275d
Merge remote-tracking branch 'origin/master' into netcore_support
matthid Apr 24, 2017
5b9e015
appveyor
matthid Apr 24, 2017
36e8eaf
maybe with vs2017?
matthid Apr 24, 2017
82e317b
fix windows/appveyor build
matthid Apr 24, 2017
ac4ef9a
add more logs
matthid Apr 24, 2017
694d52f
trigger appveyor
matthid Apr 25, 2017
6382e32
trigger appveyor
matthid Apr 25, 2017
b5e7692
make logging verbose
matthid Apr 25, 2017
9c40a9f
log project options
matthid Apr 25, 2017
6bf6366
add fscore to argument list
matthid Apr 25, 2017
6637d38
fix test build
matthid Apr 25, 2017
e0b797b
do stuff ourself
matthid Apr 25, 2017
6721f6f
?
matthid Apr 25, 2017
a0594a9
UseScriptResolutionRules
matthid Apr 25, 2017
4d35c84
fix logging
matthid Apr 25, 2017
f2a81d1
try something else..
matthid Apr 25, 2017
de6087c
add logging to tests
matthid Apr 27, 2017
e2b77f4
save testresults?
matthid Apr 27, 2017
7e6aa64
please appyevor
matthid Apr 28, 2017
3cc13fb
enable verbose logging
matthid Apr 28, 2017
76d0263
logging...
matthid Apr 28, 2017
32ebb7d
fix warnings?
matthid Apr 28, 2017
d721c0a
Merge pull request #435 from matthid/netcore_support
matthid Apr 28, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions FSharp.Formatting.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 12.0.31101.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{194BD478-0DB5-44F3-A6C2-1FC75D3F3294}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -74,6 +74,9 @@ EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Formatting.CommandTool", "src\FSharp.Formatting.CommandTool\FSharp.Formatting.CommandTool.fsproj", "{D30F7F2B-A4E3-4A07-A1BD-ED3EB21768F8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{8D44B659-E9F7-4CE4-B5DA-D37CDDCD2525}"
ProjectSection(SolutionItems) = preProject
tests\commonmark_spec.json = tests\commonmark_spec.json
EndProjectSection
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.CodeFormat.Tests", "tests\FSharp.CodeFormat.Tests\FSharp.CodeFormat.Tests.fsproj", "{5DEBD769-D86E-4E14-ABF1-373CA91BFAA2}"
EndProject
Expand Down Expand Up @@ -105,10 +108,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "crefLib4", "tests\FSharp.Me
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Formatting.Common", "src\FSharp.Formatting.Common\FSharp.Formatting.Common.fsproj", "{91BAD90E-BF3B-4646-A1A7-1568F8F25075}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AFB9168D-4763-472D-B895-F61A049B75BF}"
ProjectSection(SolutionItems) = preProject
tests\commonmark_spec.json = tests\commonmark_spec.json
EndProjectSection
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Formatting.Razor", "src\FSharp.Formatting.Razor\FSharp.Formatting.Razor.fsproj", "{C6B3C274-71A8-4239-BA9A-1AF7B2F7C736}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -196,6 +196,10 @@ Global
{91BAD90E-BF3B-4646-A1A7-1568F8F25075}.Debug|Any CPU.Build.0 = Debug|Any CPU
{91BAD90E-BF3B-4646-A1A7-1568F8F25075}.Release|Any CPU.ActiveCfg = Release|Any CPU
{91BAD90E-BF3B-4646-A1A7-1568F8F25075}.Release|Any CPU.Build.0 = Release|Any CPU
{C6B3C274-71A8-4239-BA9A-1AF7B2F7C736}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C6B3C274-71A8-4239-BA9A-1AF7B2F7C736}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C6B3C274-71A8-4239-BA9A-1AF7B2F7C736}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C6B3C274-71A8-4239-BA9A-1AF7B2F7C736}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.0-beta01 (1 August, 2016)
- MarkdownSpan and MarkdownParagraph now use named DUs
- Add range to MarkdownParagraph and MarkdownSpan (#411)

## 2.14.4 (3 June, 2016)
- Use `#I __SOURCE_DIRECTORY__` in the loads script (more reliable)

Expand Down
12 changes: 6 additions & 6 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ let release = ReleaseNotesHelper.parseReleaseNotes (File.ReadLines "RELEASE_NOTE
// Generate assembly info files with the right version & up-to-date information

Target "AssemblyInfo" (fun _ ->
let info =
let info =
[ Attribute.Title project
Attribute.Product project
Attribute.Description summary
Expand Down Expand Up @@ -367,11 +367,11 @@ let bootStrapDocumentationFiles () =
ensureDirectory (__SOURCE_DIRECTORY__ @@ "packages/FSharp.Formatting/lib/net40")
let buildFiles = [ "CSharpFormat.dll"; "FSharp.CodeFormat.dll"; "FSharp.Literate.dll"
"FSharp.Markdown.dll"; "FSharp.MetadataFormat.dll"; "RazorEngine.dll";
"System.Web.Razor.dll"; "FSharp.Formatting.Common.dll" ]
"System.Web.Razor.dll"; "FSharp.Formatting.Common.dll"; "FSharp.Formatting.Razor.dll" ]
let bundledFiles =
buildFiles
|> List.map (fun f ->
__SOURCE_DIRECTORY__ @@ sprintf "bin/%s" f,
|> List.map (fun f ->
__SOURCE_DIRECTORY__ @@ sprintf "bin/%s" f,
__SOURCE_DIRECTORY__ @@ sprintf "packages/FSharp.Formatting/lib/net40/%s" f)
|> List.map (fun (source, dest) -> Path.GetFullPath source, Path.GetFullPath dest)
for source, dest in bundledFiles do
Expand All @@ -384,7 +384,7 @@ Target "DogFoodCommandTool" (fun _ ->
// generate metadata reference
let dllFiles =
[ "FSharp.CodeFormat.dll"; "FSharp.Formatting.Common.dll"
"FSharp.Literate.dll"; "FSharp.Markdown.dll"; "FSharp.MetadataFormat.dll" ]
"FSharp.Literate.dll"; "FSharp.Markdown.dll"; "FSharp.MetadataFormat.dll"; "FSharp.Formatting.Razor.dll" ]
|> List.map (sprintf "bin/%s")
let layoutRoots =
[ "docs/tools"; "misc/templates"; "misc/templates/reference" ]
Expand Down Expand Up @@ -413,7 +413,7 @@ Target "DogFoodCommandTool" (fun _ ->
Target "GenerateDocs" (fun _ ->
bootStrapDocumentationFiles ()
buildDocumentationTarget "--define:RELEASE --define:REFERENCE --define:HELP" "Default")

Target "WatchDocs" (fun _ ->
bootStrapDocumentationFiles ()
buildDocumentationTarget "--define:WATCH" "Default")
Expand Down
3 changes: 1 addition & 2 deletions docs/content/codeformat.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ entry point. The static method `CreateAgent` starts a background worker that
can be called to format snippets repeatedly:
*)

let fsharpCompiler = Assembly.Load("FSharp.Compiler")
let formattingAgent = CodeFormat.CreateAgent(fsharpCompiler)
let formattingAgent = CodeFormat.CreateAgent()

(**
If you want to process multiple snippets, it is a good idea to keep the
Expand Down
9 changes: 3 additions & 6 deletions docs/content/evaluation.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ Specifying the evaluator and formatting

(*** hide ***)
#nowarn "211"
#I "../../bin"
#r "FSharp.CodeFormat.dll"
#r "FSharp.Literate.dll"
#r "FSharp.Markdown.dll"
#load "../../packages/FSharp.Formatting/FSharp.Formatting.fsx"
(**
The embedding of F# output requires specifying an additional parameter to the
parsing functions discussed in [literate programming documentation](literate.html).
Expand Down Expand Up @@ -159,9 +156,9 @@ fsiOl.RegisterTransformation(fun (o, ty) ->
let items =
// Get items as objects and create paragraph for each item
[ for it in Seq.cast<obj> (unbox o) ->
[ Paragraph[Literal (it.ToString())] ] ]
[ Paragraph([Literal(it.ToString(), None)], None) ] ]
// Return option value (success) with ordered list
Some [ ListBlock(MarkdownListKind.Ordered, items) ]
Some [ ListBlock(MarkdownListKind.Ordered, items, None) ]
else None)
(**

Expand Down
8 changes: 4 additions & 4 deletions docs/content/literate.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,18 @@ Typical literate setup

(*** hide ***)
#nowarn "211"
#I "../../bin"

(**
For literate programming support in your project, install the `FSharp.Formatting` nuget package.
HTML (or LaTeX) is generated by including a simple script file similar to [`build.fsx`](https://github.com/tpetricek/FSharp.Formatting/blob/master/misc/literate/build.fsx) in your project.

You can find this file in the installed nuget package folder: `/packages/FSharp.Formatting.2.8.0/literate/`
You can find this file in the installed nuget package folder: `/packages/FSharp.Formatting/literate/`

Assuming you are using *FSharp.Formatting 2.8.0* typical `build.fsx` looks like this:
Assuming you are using [Paket](http://fsprojects.github.io/Paket/) to reference F# Formatting and you
do not have version number in the directory name, typical `build.fsx` looks like this:
*)

#load @"../packages/FSharp.Formatting.2.8.0/FSharp.Formatting.fsx"
#load "../../packages/FSharp.Formatting/FSharp.Formatting.fsx"
open FSharp.Literate
open System.IO

Expand Down
11 changes: 7 additions & 4 deletions docs/content/markdown.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ how to turn the code into a nicely formatted HTML.
First, we need to load the assembly and open necessary namespaces:
*)

#r "../../bin/FSharp.Formatting.Common.dll"
#r "../../bin/FSharp.Markdown.dll"
open FSharp.Markdown
open FSharp.Formatting.Common


(**
Parsing documents
Expand Down Expand Up @@ -64,7 +67,7 @@ The following snippet prints the heading of the document:
// Iterate over all the paragraph elements
for par in parsed.Paragraphs do
match par with
| Heading(1, [Literal text]) ->
| Heading(size=1; body=[Literal(text=text)]) ->
// Recognize heading that has a simple content
// containing just a literal (no other formatting)
printfn "%s" text
Expand Down Expand Up @@ -92,12 +95,12 @@ to recognize any paragraph or span that can contain child elements:
/// Returns all links in a specified span node
let rec collectSpanLinks span = seq {
match span with
| DirectLink(_, (url, _)) -> yield url
| IndirectLink(_, _, key) -> yield fst (parsed.DefinedLinks.[key])
| DirectLink(link=url) -> yield url
| IndirectLink(key=key) -> yield fst (parsed.DefinedLinks.[key])
| Matching.SpanLeaf _ -> ()
| Matching.SpanNode(_, spans) ->
for s in spans do yield! collectSpanLinks s }

/// Returns all links in the specified paragraph node
let rec collectParLinks par = seq {
match par with
Expand Down
16 changes: 8 additions & 8 deletions docs/tools/generate.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let info =
"project-github", githubLink
"project-nuget", "http://nuget.org/packages/FSharp.Formatting" ]

let referenceBinaries =
let referenceBinaries =
[ "FSharp.CodeFormat.dll"; "FSharp.Literate.dll"; "FSharp.Markdown.dll"; "FSharp.MetadataFormat.dll"; "FSharp.Formatting.Common.dll" ]

// --------------------------------------------------------------------------------------
Expand All @@ -40,6 +40,7 @@ open Fake.FileHelper

open FSharp.Literate
open FSharp.MetadataFormat
open FSharp.Formatting.Razor

// When called from 'build.fsx', use the public project URL as <root>
// otherwise, use the current 'output' directory.
Expand All @@ -56,7 +57,7 @@ let bin = "../../bin"
let content = "../content"
let output = "../output"
let files = "../files"
let templates = "."
let templates = "."
let formatting = "../../misc/"
let docTemplate = formatting @@ "templates/docpage.cshtml"
let docTemplateSbS = templates @@ "docpage-sidebyside.cshtml"
Expand All @@ -80,7 +81,7 @@ let fsiEvaluator = lazy (Some (FsiEvaluator() :> IFsiEvaluator))
let copyFiles () =
CopyRecursive files output true |> Log "Copying file: "
ensureDirectory (output @@ "content")
//CopyRecursive (formatting @@ "styles") (output @@ "content") true
//CopyRecursive (formatting @@ "styles") (output @@ "content") true
// |> Log "Copying styles and scripts: "

let binaries =
Expand All @@ -93,7 +94,7 @@ let libDirs = [bin]
// Build API reference from XML comments
let buildReference () =
CleanDir (output @@ "reference")
MetadataFormat.Generate
RazorMetadataFormat.Generate
( binaries, output @@ "reference", layoutRootsAll.["en"],
parameters = ("root", root)::info,
sourceRepo = githubLink @@ "tree/master",
Expand All @@ -102,7 +103,7 @@ let buildReference () =

// Build documentation from `fsx` and `md` files in `docs/content`
let buildDocumentation () =
let subdirs =
let subdirs =
[ content @@ "sidebyside", docTemplateSbS
content, docTemplate; ]
for dir, template in subdirs do
Expand All @@ -115,7 +116,7 @@ let buildDocumentation () =
match key with
| Some lang -> layoutRootsAll.[lang]
| None -> layoutRootsAll.["en"] // "en" is the default language
Literate.ProcessDirectory
RazorLiterate.ProcessDirectory
( dir, template, output @@ sub, replacements = ("root", root)::info,
layoutRoots = layoutRoots,
generateAnchors = true,
Expand Down Expand Up @@ -153,8 +154,7 @@ let watch () =
hasData := false

printfn "Detected changes (%A). Invalidate cache and rebuild." !data
FSharp.MetadataFormat.RazorEngineCache.InvalidateCache (!data |> Seq.map (fun change -> change.FullPath))
FSharp.Literate.RazorEngineCache.InvalidateCache (!data |> Seq.map (fun change -> change.FullPath))
FSharp.Formatting.Razor.RazorEngineCache.InvalidateCache (!data |> Seq.map (fun change -> change.FullPath))
rebuildDocs()
printfn "Documentation generation finished."
with e ->
Expand Down
9 changes: 5 additions & 4 deletions misc/literate/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#load "../../src/FSharp.Formatting.fsx"
open System.IO
open FSharp.Literate
open FSharp.Formatting.Razor

// ----------------------------------------------------------------------------
// SETUP
Expand Down Expand Up @@ -30,26 +31,26 @@ let processScriptAsHtml () =
let file = relative "demo.fsx"
let output = relative "output/demo-script.html"
let template = relative "templates/template-file.html"
Literate.ProcessScriptFile(file, template, output)
RazorLiterate.ProcessScriptFile(file, template, output)

/// Processes a single F# Script file and produce LaTeX output
let processScriptAsLatex () =
let file = relative "demo.fsx"
let output = relative "output/demo-script.tex"
let template = relative "templates/template-color.tex"
Literate.ProcessScriptFile(file, template, output, format = OutputKind.Latex)
RazorLiterate.ProcessScriptFile(file, template, output, format = OutputKind.Latex)

/// Processes a single Markdown document and produce HTML output
let processDocAsHtml () =
let file = relative "demo.md"
let output = relative "output/demo-doc.html"
let template = relative "templates/template-file.html"
Literate.ProcessMarkdown(file, template, output)
RazorLiterate.ProcessMarkdown(file, template, output)

/// Processes a single Markdown document and produce LaTeX output
let processDocAsLatex () =
let file = relative "demo.md"
let output = relative "output/demo-doc.tex"
let template = relative "templates/template-color.tex"
Literate.ProcessMarkdown(file, template, output, format = OutputKind.Latex)
RazorLiterate.ProcessMarkdown(file, template, output, format = OutputKind.Latex)

1 change: 1 addition & 0 deletions packages/FSharp.Formatting/FSharp.Formatting.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if (typeof<System.Web.Razor.ParserResults>.Assembly.GetName().Version.Major <= 2

#r "FSharp.CodeFormat.dll"
#r "FSharp.MetadataFormat.dll"
#r "FSharp.Formatting.Razor.dll"

// Setup Logging for FSharp.Formatting and Yaaf.FSharp.Scripting
module Logging = FSharp.Formatting.Common.Log
Expand Down
4 changes: 1 addition & 3 deletions paket.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
REDIRECTS: ON
NUGET
remote: http://www.nuget.org/api/v2
specs:
CommandLineParser (1.9.71)
FAKE (4.22.8)
FSharp.Compiler.Service (2.0.0.6)
Expand All @@ -21,5 +20,4 @@ NUGET
Zlib.Portable (1.11) - framework: portable-net40+sl50+wp80+win80
GITHUB
remote: matthid/Yaaf.FSharp.Scripting
specs:
src/source/Yaaf.FSharp.Scripting/YaafFSharpScripting.fs (48789eeb63382a6934966472e270e87880cb49ed)
src/source/Yaaf.FSharp.Scripting/YaafFSharpScripting.fs (48789eeb63382a6934966472e270e87880cb49ed)
8 changes: 4 additions & 4 deletions src/Common/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
[assembly: AssemblyTitleAttribute("FSharp.Formatting")]
[assembly: AssemblyProductAttribute("FSharp.Formatting")]
[assembly: AssemblyDescriptionAttribute("A package of libraries for building great F# documentation, samples and blogs")]
[assembly: AssemblyVersionAttribute("2.14.3")]
[assembly: AssemblyFileVersionAttribute("2.14.3")]
[assembly: AssemblyInformationalVersionAttribute("2.14.3")]
[assembly: AssemblyVersionAttribute("3.0.0")]
[assembly: AssemblyFileVersionAttribute("3.0.0")]
[assembly: AssemblyInformationalVersionAttribute("3.0.0-beta01")]
[assembly: AssemblyCopyrightAttribute("Apache 2.0 License")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "2.14.3";
internal const string Version = "3.0.0";
}
}
8 changes: 4 additions & 4 deletions src/Common/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ open System.Reflection
[<assembly: AssemblyTitleAttribute("FSharp.Formatting")>]
[<assembly: AssemblyProductAttribute("FSharp.Formatting")>]
[<assembly: AssemblyDescriptionAttribute("A package of libraries for building great F# documentation, samples and blogs")>]
[<assembly: AssemblyVersionAttribute("2.14.3")>]
[<assembly: AssemblyFileVersionAttribute("2.14.3")>]
[<assembly: AssemblyInformationalVersionAttribute("2.14.3")>]
[<assembly: AssemblyVersionAttribute("3.0.0")>]
[<assembly: AssemblyFileVersionAttribute("3.0.0")>]
[<assembly: AssemblyInformationalVersionAttribute("3.0.0-beta01")>]
[<assembly: AssemblyCopyrightAttribute("Apache 2.0 License")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] Version = "2.14.3"
let [<Literal>] Version = "3.0.0"
Loading