Comments (4)
There was a bug in the literate.fsx
script, but that should be fixed by today's commit db21b8f.
If I merge that change with my current version and then run all the code in tools/build.fsx
then it generates index.html
which contains (colorized) snippet (with tooltips) as expected.
Can you add some details about the errors you're getting?
from fsharp.formatting.
The error I get upon runing the build.fsx is :
Generating 'index.html'
- (1:0)-(2:0) (Error): Files in libraries or multiple-file applications must begin with a namespace or module declara
tion, e.g. 'namespace SomeNamespace.SubNamespace' or 'module SomeNamespace.SomeModule' - (1:0)-(2:0) (Warning): The declarations in this file will be placed in an implicit module 'Index.html' based on the
file name 'index.html.fs'. However this is not a valid F# identifier, so the contents will not be accessible from other
files. Consider renaming the file or adding a 'module' or 'namespace' declaration at the top of the file.
The commit db21b8f is contained in the error branch
from fsharp.formatting.
The HTML file is correctly generated though. my bad.
from fsharp.formatting.
The F# compiler sometimes reports errors and warnings that would be a problem when compiling a file, but do not really break anything when used in F# formatting - the two messages you're seeing are an example of that.
An easy fix for these two specific messages was to add module Foobar
to the beginning of the generated *.fs
file (so that the file starts with a module declaration), so I added that in 396af87.
from fsharp.formatting.
Related Issues (20)
- Get CommonMark 0.30 tests to pass for "Fenced code blocks" section
- Dockerfile fails to build with "failed to solve: process /bin/bash ..." HOT 2
- discussion: multi target F# libraries (IL, WebSharper, Fable, etc.)
- discussion: offering back links form API pages to the other documentation pages?
- Need to update repo's nuget API key HOT 2
- Package references cannot be resolved when trying to build API documentation programmatically HOT 4
- Modernize the default theme HOT 37
- Some displayed examples may have broken indendation HOT 11
- Add how-to for the most typical scenario HOT 2
- List users of this tool HOT 1
- CSharp library not used for generating API docs HOT 7
- Function signature tooltips include attributes for arguments that make the tooltip unreadable HOT 5
- Directory.Build.props is ignored if there are no projects or solutions HOT 3
- SEO-optimization for new theme HOT 4
- Suggestion: init command
- Dark mode borders: too much contrast?
- Namespace description overflows content box
- Output font size on mobile safari is too big HOT 6
- Using testcontainers in a fsx script gives wrong output HOT 7
- Create a keyword/glossary site map
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.formatting.