html - F# FSharp.Literate formatted code snippet does not display correctly (.css & .js?) -


I am trying to use FSharp.Literate to create HSL pages. I am working in XMERIN using Mona 4.5. I use the original *. Fsx wants to convert the script to html. I am using simple to test the script which I would like to convert to HTML, looks like this.

  (** # Some more documents using the first-level title 'Markdown'. *) (*** Includes: Final Sample * **) (** ## Second-level title with some more documents) * (*** Define: Final-Sample ***) Halo World () = Printfun "Hello World!"  

I created the code to download FSharp.Formatting in NuGet Manager. It has also been installed on the basis of example Microsoft.AspNet.Razor 2 and RazorEngine

in the document, I started the above example The following script was written to: In HTML I basically use the HTML template on the original FSharp.formatting on the Gitub.

  #I "bin / debug /" #r "FSharp.Literate.dll" #r "FSharp.Markdown Dll" #r "FSharp.CodeFormat.dll" Open System. IO OS FSHRPP Written source = __SOURCE_DIRECTORY__ basedir = path. Cobain (source, "html /") file = path. Cobain (Bassdearer, "Demo.Fex") output = path.combine (basedeer, "demo-script html") let's template = path.combin (basedeer, "templatesom") litrate. Process script file (file, template, output)  

process runs and it generates an html file. However, do not want to token to the F # code, instead of the well formatted code, I get the examples given below. Am I missing something obvious?

Edit :

Based on Tomas' comment, let me down. Found problems with CSS and .js files. In the template I used, href = "{root} /content/style.css" /> & Lt; Script src = "{root} /content/tips.js"

{root} tag was the reason this CSS and JS file could not be found. Convert this to href = "content / style.css" /> & lt; Script src = "content / tips.js" problem solved

html

I think the library has actually produced the right HTML as you end up with the file , The content that should appear in device tips (information about the type of helloWorld and printfn ).

The problem is that the generated HTML file does not correctly reference tips.js and style.css which defines formatting for HTML And make the script pop-up tool tips These two files must be included in the NuGet package (with the default template), or you can find them.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -