You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using `fsdocs`, there are six levels of extra content development and styling.
9
10
10
-
1. Don't do any styling or documentation customization and simply write content. This is by far the simplest option to maintain.
11
+
1. Don't do any styling or documentation customization and simply write content. This is by far the simplest option to
12
+
maintain.
11
13
12
14
2. Add content such as an `docs/index.md` to customize the front-page content for your generated docs.
13
15
You can also add content such as `docs/reference/fslib.md` to give a bespoke landing page
14
-
for one of your namespaces, e.g. here assumed to be `namespace FsLib`. This will override any
16
+
for one of your namespaces, e.g. here assumed to be `namespace FsLib`. This will override any
15
17
generated content.
16
18
17
19
3. Customize via Styling Parameters
@@ -22,13 +24,17 @@ When using `fsdocs`, there are six levels of extra content development and styli
22
24
23
25
6. Customize by generating your own site using your own code
24
26
25
-
By default `fsdocs` does no styling customization and uses the following defaults. These are the settings used to build this site.
27
+
By default `fsdocs` does no styling customization and uses the following defaults. These are the settings used to build
28
+
this site.
26
29
27
-
* Uses the default template in [docs/_template.html](https://github.com/fsprojects/FSharp.Formatting/blob/master/docs/_template.html)
30
+
* Uses the default template
31
+
in [docs/_template.html](https://github.com/fsprojects/FSharp.Formatting/blob/master/docs/_template.html)
28
32
29
-
* Uses the default styles in [docs/content/fsdocs-default.css](https://github.com/fsprojects/FSharp.Formatting/blob/master/docs/content/fsdocs-default.css).
33
+
* Uses the default styles
34
+
in [docs/content/fsdocs-default.css](https://github.com/fsprojects/FSharp.Formatting/blob/master/docs/content/fsdocs-default.css).
30
35
31
-
* Uses no custom styles in [docs/content/fsdocs-custom.css](https://github.com/fsprojects/FSharp.Formatting/blob/master/docs/content/fsdocs-default.css).
36
+
* Uses no custom styles
37
+
in [docs/content/fsdocs-custom.css](https://github.com/fsprojects/FSharp.Formatting/blob/master/docs/content/fsdocs-default.css).
32
38
33
39
* Uses no styling parameters except those extracted from the project files.
34
40
@@ -39,75 +45,108 @@ you adjust them there is no guarantee that your template will continue to work w
39
45
40
46
The following [content parameters](content.html) are particularly related to visual styling:
41
47
42
-
|Substitution name | Value (if not overriden by --parameters) |
Do note that files need to be added prior running or won't be generated.
139
-
In case you want to get a unique identifier for a header or menu item, you can use `{{fsdocs-menu-header-id}}` and `{{fsdocs-menu-item-id}}`, respectively.
181
+
In case you want to get a unique identifier for a header or menu item, you can use `{{fsdocs-menu-header-id}}`
182
+
and `{{fsdocs-menu-item-id}}`, respectively.
140
183
141
184
## Injecting additional html into the default template
142
185
143
-
Occasionally, you may find the need to make small customizations to the default template, such as adding a Google Analytics snippet or including additional style or script tags. To address this scenario, you can create two files: `_head.html` and/or `_body.html`.
186
+
Occasionally, you may find the need to make small customizations to the default template, such as adding a Google
187
+
Analytics snippet or including additional style or script tags. To address this scenario, you can create two
188
+
files: `_head.html` and/or `_body.html`.
144
189
145
-
The content within these files will serve as replacements for the `{{fsdocs-head-extra}}` and `{{fsdocs-body-extra}}` placeholders, which are utilized in the default template.
190
+
The content within these files will serve as replacements for the `{{fsdocs-head-extra}}` and `{{fsdocs-body-extra}}`
191
+
placeholders, which are utilized in the default template.
146
192
147
193
## Customizing by generating your own site using your own code
148
194
149
195
The `FSharp.Formatting.ApiDocs` namespace includes a `GenerateModel` that captures
150
-
the results of documentation preparation in `ApiDocsModel` and allows you to
196
+
the results of documentation preparation in `ApiDocsModel` and allows you to
151
197
generate your own site using your own code.
152
198
153
-
> NOTE: The ApiDocsModel API is undergoing change and improvement and there is no guarantee that your bespoke site generation will continue to work
199
+
> NOTE: The ApiDocsModel API is undergoing change and improvement and there is no guarantee that your bespoke site
200
+
> generation will continue to work
154
201
> with future versions of F# Formatting.
155
202
156
203
> NOTE: The `ApiDocsModel` currently includes some generated HTML with some specific style tags.
157
204
> In the long term these may be removed from the design of that component.
0 commit comments