fumadocs-fortran 0.0.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +253 -80
  2. package/README.md +44 -80
  3. package/bin/fumadocs-fortran.js +4 -208
  4. package/fumadocs/compose.js +319 -11
  5. package/fumadocs/mdx.js +11 -3
  6. package/fumadocs/source.js +102 -7
  7. package/package.json +9 -2
  8. package/react/index.js +172 -33
  9. package/remark/index.js +577 -0
  10. package/remark/inventory.js +227 -0
  11. package/remark/syntax.js +86 -0
  12. package/schema/ir-1.json +652 -0
  13. package/shiki/index.js +318 -4
  14. package/src/check/doctor.js +295 -0
  15. package/src/check/drift.js +100 -0
  16. package/src/check/render.js +241 -0
  17. package/src/cli/args.js +204 -0
  18. package/src/cli/check.js +174 -0
  19. package/src/cli/config.js +40 -0
  20. package/src/cli/doctor.js +48 -0
  21. package/src/cli/dump.js +258 -0
  22. package/src/cli/generate.js +223 -0
  23. package/src/cli/help.js +89 -0
  24. package/src/cli/index.js +94 -0
  25. package/src/cli/init.js +327 -0
  26. package/src/cli/report.js +64 -0
  27. package/src/cli/trim-export.js +148 -0
  28. package/src/config/defaults.js +357 -0
  29. package/src/config/ford.js +495 -0
  30. package/src/config/fpm.js +109 -0
  31. package/src/config/index.js +467 -0
  32. package/src/config/merge.js +55 -0
  33. package/src/config/toml.js +469 -0
  34. package/src/docs/index.js +221 -21
  35. package/src/docs/math-spans.js +48 -3
  36. package/src/emit/generate.js +532 -49
  37. package/src/emit/graphs.js +97 -33
  38. package/src/emit/guides.js +713 -0
  39. package/src/emit/hpc-page.js +138 -0
  40. package/src/emit/inventory.js +99 -0
  41. package/src/emit/library.js +163 -12
  42. package/src/emit/pages.js +1487 -173
  43. package/src/emit/search.js +417 -0
  44. package/src/emit/split.js +130 -0
  45. package/src/emit/variants.js +253 -0
  46. package/src/extract.js +76 -18
  47. package/src/index.js +3 -2
  48. package/src/init/detect.js +394 -0
  49. package/src/init/edits.js +176 -0
  50. package/src/init/empty-config.js +4 -0
  51. package/src/init/write.js +549 -0
  52. package/src/model/external.js +268 -0
  53. package/src/model/ir.js +81 -8
  54. package/src/parse/parser.js +172 -20
  55. package/src/site/trim.js +137 -0
  56. package/src/source/command.js +278 -0
  57. package/src/source/files.js +21 -6
  58. package/src/watch.js +520 -0
  59. package/style.css +205 -26
  60. package/types/config.d.ts +125 -0
  61. package/types/extract.d.ts +122 -0
  62. package/types/index.d.ts +6 -537
  63. package/types/mdx.d.ts +40 -4
  64. package/types/model.d.ts +353 -0
  65. package/types/pages.d.ts +591 -0
  66. package/types/react.d.ts +63 -10
  67. package/types/remark.d.ts +46 -0
  68. package/types/shiki.d.ts +42 -0
  69. package/types/source.d.ts +15 -6
package/CHANGELOG.md CHANGED
@@ -2,13 +2,177 @@
2
2
 
3
3
  All notable changes to fumadocs-fortran are listed here, in a section for each release. The project follows
4
4
  [semantic versioning](https://semver.org/): before 1.0.0, any release can change the generated pages, the options and
5
- the components' props, so pin the version you use.
5
+ the components' props, so pin the version you use. The model that `dump` prints is IR 1.x from 0.9.0 on, which a later
6
+ 1.x only extends.
6
7
 
7
- ## 0.1.0 (unreleased)
8
+ ## 0.9.0 (2026-12-03)
8
9
 
9
- The first release: a Fortran parser in plain JavaScript; a doc-comment engine for FORD, Doxygen and LAPACK comments;
10
- the MDX pages that `fumadocs-fortran generate` writes, with the React components and the stylesheet they use; the HPC
11
- registry behind their library cards and graph colours; and Shiki grammars for Fortran code blocks.
10
+ The whole scope planned for 1.0: references the size of stdlib and all of LAPACK within a static site's budgets, a
11
+ command line with a configuration file and the commands that check, explain and set up a reference, FORD's projects
12
+ read as they are, links into the reference from a site's own pages and code blocks, the hpc page, and the model frozen
13
+ as IR 1.0 with its JSON Schema. 1.0.0 follows with no change to the code once the Fumadocs canary has been green for
14
+ four weeks and no nightly run has lost a file. The first release on npm since 0.0.0, which held the name.
15
+
16
+ ### Upgrading from 0.1
17
+
18
+ 0.1.0 was never published: it, and main before 0.9.0, installed from GitHub. 0.9.0 installs from npm. In your site's
19
+ folder, replace the GitHub spec in its `package.json`:
20
+
21
+ ```bash
22
+ npm install fumadocs-fortran
23
+ ```
24
+
25
+ Then run your reference script again, and commit what it writes: the pages change with the cards, tables and anchors
26
+ below, and the manifest `.fumadocs-fortran.json` now records the version that wrote it. What else an upgrade meets:
27
+
28
+ - **Command line.** With no command, the help is printed and the exit code is 2, not 1. An option belongs to its
29
+ command: `dump --title X` or `generate --summary`, which 0.1.0 ignored, now exit 2 with `--title is an option of
30
+ generate and check, not of dump`. `--fixed-length` takes 0, 72 or 132, `--display` public, protected and private,
31
+ and `-D` a name; `dump --summary` takes no `-o`. After its count line, `generate` prints a line when pages split and
32
+ one for the search level. The count line counts the manifest among the files, and ends with the configuration's
33
+ warnings, as in `; 2 diagnostics and 1 configuration warning`. A path that does not exist, or a folder with no
34
+ Fortran, gives a `no-sources` warning, and `--strict` makes a warning exit 1. See
35
+ [Command line](https://nevensky.github.io/fumadocs-fortran/docs/reference/cli/#exit-codes-and-messages).
36
+ - **fpm.toml and config files.** An `fpm.toml` in the root is read: with no paths, `generate` reads its library's
37
+ `source-dir`, else `src`, rather than the whole folder, and takes the title, description, cpp macros and badges from
38
+ it. A `fumadocs-fortran.config.mjs` is found from the working folder up to the repository's root. Give paths, or
39
+ `sources.dirs`, to read other folders. See
40
+ [Configuration](https://nevensky.github.io/fumadocs-fortran/docs/reference/configuration/#layers).
41
+ - **Split pages.** A page over 256 KiB of MDX becomes a folder: its index page keeps the page's URL and lists every
42
+ entity, and the entities move to parts, at `…/<page>/<part>#<anchor>`. An old link to `…/<page>#<anchor>` lands on
43
+ the entity's row of the index. `--split none`, or `output.split: false`, keeps every page whole. See
44
+ [Split pages](https://nevensky.github.io/fumadocs-fortran/docs/reference/generated-files/#split-pages).
45
+ - **Cards and tables.** In each table, a kind or type has its hover card in its first row only; later rows link it.
46
+ The interface bodies of a generic that differ only in types and shapes are written once, as one table whose rows
47
+ list the types and shapes. See
48
+ [Entries](https://nevensky.github.io/fumadocs-fortran/docs/reference/generated-files/#entries).
49
+ - **The hpc page.** Where the code uses OpenMP, OpenACC, CUDA Fortran, MPI, BLAS, LAPACK, ScaLAPACK or coarrays,
50
+ `hpc.mdx` follows the overview. A module named `hpc` moves to `module-hpc`, as one named `index` moves to
51
+ `module-index`. `output.hpcPage: false` leaves the page out. See
52
+ [Page names](https://nevensky.github.io/fumadocs-fortran/docs/reference/generated-files/#page-names).
53
+ - **Same-named units.** Of the units of one kind that share a name, the first in the sources keeps its URL, and the
54
+ others move from `-program`, `-program_2` (or `-module`, `-module_2`) to their folder's, as `driver-bench`; external
55
+ procedures of one name on one page move from `#name-2` to `#name-<folder>`, and the parts of a split page of them
56
+ from `-2-subroutine` to the folder's, as `helper/helper-b`. See
57
+ [Page names](https://nevensky.github.io/fumadocs-fortran/docs/reference/generated-files/#page-names).
58
+ - **Search and sidebar.** `output.search` is `auto`: a reference whose full index would pass 8 MB is indexed with
59
+ fewer records; `--search full` keeps every record. `fortranPlugin` groups a run of more than 60 generated pages
60
+ into range folders; `fortranPlugin({ sidebar: { group: 0 } })` keeps the run whole. See
61
+ [Large references](https://nevensky.github.io/fumadocs-fortran/docs/guides/large-references/#defaults).
62
+ - **Components.** The pages use three new components, `FortranIndex`, `FortranVariants` and `FortranVariant`. A
63
+ site that spreads `fortranComponents` has them; one that lists the components by hand must add them, or the build
64
+ stops with MDX's "Expected component `FortranIndex` to be defined".
65
+ - **Fumadocs.** fumadocs-core and fumadocs-ui 16.18.4, with fumadocs-mdx 15.5.3, are the oldest checked, and the search
66
+ levels need them. The optional peer `fumadocs-core` is `>=16.18.4`, so npm refuses a site with an older one
67
+ (`ERESOLVE`), and `init` warns below it.
68
+ - **The model.** `dump` writes `irVersion` `1.0`, not `1.0-draft`, with `generator` and the cpp `options`; a type
69
+ parameter is a `TypeParam`. `readIR` and `generate --from-ir` read 0.1's models too. See
70
+ [The model as JSON](https://nevensky.github.io/fumadocs-fortran/docs/agents/api/#ir-versions).
71
+ - **Documentation.** The pages were reorganised; the old addresses redirect to the new ones.
72
+
73
+ ### Added and changed
74
+
75
+ - **Scale.** A page over `output.split` (256 KiB of MDX by default; `--split SIZE|none`) is split into an index page
76
+ and packed parts, keeping every anchor; a part of one entity over the budget, and an index over it, are reported as
77
+ `page-over-budget`. A kind card is written once per table, and a generic's bodies that differ only in types and
78
+ shapes once per argument list. `--graphs units` leaves out the call graphs of procedures and generics. Search has
79
+ three levels, `full`, `arguments` (documented arguments, a record each) and `entities`, set per page in the front
80
+ matter and applied by `withFortran`; `auto` takes the richest whose index stays within 8 MB. A reference of stdlib's
81
+ size stays over 8 MB at every level (21.41 MB at `entities`; all of LAPACK, 17.10 MB): `generate` takes `entities`
82
+ and says so, `search: entities (24 MB of index projected; no level is within 8 MB)`. `fortranPlugin` lists a split
83
+ page as a folder of its parts, and folds runs of more than 60 pages into range folders. `trim-export` deletes
84
+ Next.js's payload files from a static export's reference pages, which keeps stdlib's export under GitHub Pages'
85
+ 1 GB. On stdlib, stdlib_stats_descriptive's page goes from 822,842 bytes of MDX to 187,857, and the whole reference's
86
+ MDX shrinks by 5.62% with the split's index pages, 9.41% without the split. The weekly builds' trimmed exports are
87
+ 575,275,138 bytes for stdlib and 601,400,486 for all of LAPACK. Lighthouse's desktop performance score on stdlib's
88
+ largest page is 98, against 7 before the split.
89
+ - **Command line.** Six commands, each with its own options and help (`fumadocs-fortran <command> --help`):
90
+ - `generate` gains `--description`, `--default-open`, `--split`, `--search`, `--source-max-lines`, `--clean`,
91
+ `--watch` (writes again on each change to the sources, includes, config, FORD file or fpm.toml), and `--from-ir
92
+ FILE` (the pages from a model `dump` wrote, with no source read);
93
+ - `dump --explain FILE:LINE` says which entity a doc comment documents, by which rule, or why it documents none;
94
+ - `check` compares the generated files with what the sources give (exit 1 on drift), and `--render` compiles and
95
+ renders each page with the site's MDX and React;
96
+ - `doctor` reports how much of the code is documented, the doc comments attached to nothing with their reasons, the
97
+ links, aliases and files not used, and the names defined in several files (`--json` for all of it);
98
+ - `init` writes `fumadocs-fortran.config.mjs` for a project and its Fumadocs site from what it finds (fpm.toml, a
99
+ FORD file with `--from-ford`, the sources, their cpp macros), and prints the edits the site needs; `--mode
100
+ prebuild` has the site generate the pages before each build instead of committing them. When the settings give
101
+ the repository's address and no `repo.rev`, `init` sets `repo.rev` to the default branch of git's remote origin,
102
+ never the branch checked out; without one, the links use `main`, and a comment in the config says `rev` may need
103
+ setting;
104
+ - `trim-export OUT [--route PATH]… [--dry-run]`.
105
+
106
+ `dump`, `generate`, `check` and `doctor` read `--config`, `--ford`, `--root`, `--cpp`, `--fypp` and `--strict` (exit
107
+ 1 on a warning).
108
+ - **Configuration.** `fumadocs-fortran.config.mjs` (`defineConfig`, `loadConfig`) with its layers: the command line,
109
+ the config file, `[extra.fumadocs-fortran]` and `[extra.ford]` in fpm.toml or a FORD project file, fpm.toml's own
110
+ facts, and the defaults. FORD 7.0.13's settings are read as FORD reads them, and those that do not apply are named
111
+ as ignored, with the reason. json-fortran's reference builds from its unchanged `ford.md`.
112
+ - **Preprocessors.** `fypp.command` and `cpp.command` run fypp, or the build's own cpp, on the files that need them,
113
+ in parallel; entities, doc comments and source blocks point at the original lines. `!$` lines are code in every file
114
+ of a run when `cpp.macros` defines `_OPENMP` or `cpp.command` does: the last `-D_OPENMP` or `-U_OPENMP` of its
115
+ arguments decides, and without either, the last of `-fopenmp`, `-qopenmp`, `-fiopenmp` or `-mp` and `-fno-openmp`,
116
+ `-qno-openmp`, `-fno-iopenmp` or `-nomp`. A command whose output has no line markers gets a `preprocessor-markers`
117
+ warning.
118
+ - **FORD's projects.** `[[links]]` in every form FORD reads, with its kinds and synonyms; `|alias|`; `page_dir`'s
119
+ pages converted to MDX, with their media copied, and their headings given FORD's ids, a repeated one `_1`, `_2`, so
120
+ that FORD's own links to them resolve; `external` and `extra_mods`, taking only http and https addresses; and
121
+ `modules.json` written for other references with `output.siteUrl` and `output.public`. A link to an external
122
+ project's name whose address is not http or https says `NAME in PROJECT has no http(s) address`.
123
+ - **Same-named units.** Where several files define a name, as LAPACK's `SRC/VARIANTS` or a program per folder do, the
124
+ Calls line, the call graph, Uses, Used by and `[[links]]` take the copy nearest the file that names it, and a call
125
+ to a name the caller cannot see is not linked. Each such name gets a `duplicate-name` info
126
+ note, which no run fails on, `--strict` included, and doctor's "Names defined in several files" section. A separate
127
+ module procedure of a module takes that module's interface body, in its arguments, doc and access. Units of one kind
128
+ that share a name are labelled `name · folder` (with the file when two share a folder, the file's name at the
129
+ project's root, then a counter) in their titles, the sidebar, search, the overview's cards and graph, the hpc page,
130
+ Uses, Used by, Calls, Submodule of and the graphs; the first in the sources keeps its URL and the others take their
131
+ folder's (`driver-bench`), as do the anchors of external procedures of one name on one page.
132
+ - **The site's own pages.** `fumadocs-fortran/remark`'s `remarkFortran` (also `withFortran({ api })`) reads the
133
+ manifest's inventory of each reference, and gives a site's pages `[[links]]`, aliases, `{!file!}` includes and
134
+ `<auto-fortran>` embeds of an entry. `withFortran({ codeLinks: true })`, with `transformerFortranLinks()` from
135
+ `fumadocs-fortran/shiki`, links the project's names and the registry's routines in a site's Fortran code blocks.
136
+ - **HPC.** The hpc page lists, per directive family, the constructs and who uses them, the MPI, BLAS, LAPACK and
137
+ ScaLAPACK routines called (LAPACK's with their precision families) and their callers, the HPC modules used and the
138
+ coarray users. Unit pages say which units use them. A library card carries the registry's hints (workspace query,
139
+ leading dimension, INFO, descriptors, collective, nonblocking) as a note, in our own words; `include 'mpif.h'` is
140
+ marked deprecated; `hpc.wrappers` gives a project's wrapper procedures their library's badge. A page of LAPACK
141
+ routines opens with a strip of the routine's precisions (`FortranVariants`).
142
+ - **Pages.** Source links percent-encode each folder and the file's name, and `repo.rev` and `repo.root`, so a path
143
+ or branch with a space or a `#` links correctly on GitHub; a `%XX` already in `repo.rev` or `repo.root` is kept.
144
+ Maths on a table row keeps its bars inside the cell, as `\vert` and `\Vert`. An unnamed block data unit is titled
145
+ block data. A page or folder renamed in case only takes its new name, on a disk that ignores case too.
146
+ - **The model.** IR 1.0, frozen: `schema/ir-1.json` (JSON Schema 2020-12, exported as
147
+ `fumadocs-fortran/schema/ir-1.json` and served at its `$id`), `readIR`, and `generate({ ir })`. A 1.x only adds
148
+ optional fields; a reader takes any 1.x and refuses another major version. `test/fixtures/ir/modern-1.0.json` is
149
+ the model of `examples/modern` as 0.9.0 writes it, which every later version must read and render.
150
+ - **JavaScript API.** `buildOutputs`, `readIR`, `defineConfig` and `loadConfig` from the main entry; the
151
+ `fumadocs-fortran/remark` entry; the components `FortranIndex`, `FortranVariants` and `FortranVariant`;
152
+ `withFortran`'s `search`, `api` and `codeLinks`; `fortranPlugin`'s `sidebar: { group }`. `ExternalProject` has an
153
+ optional `refused` list.
154
+ - **Checks.** A nightly workflow generates and checks with `check --render` nine whole codebases (LAPACK, ScaLAPACK,
155
+ json-fortran, Quantum ESPRESSO's PW, Wannier90, stdlib from fpm and from its fypp sources, fpm, miniWeather),
156
+ validates each model against the schema and compares its counts with a committed baseline; 40 labelled doc blocks
157
+ from five codes say which entity each documents, and all 40 attach as labelled. A weekly job builds all of LAPACK
158
+ and stdlib as static sites within their budgets; a weekly canary builds the site against Fumadocs' oldest supported
159
+ and latest releases; a weekly job checks the external links of the showcases and the registry.
160
+ - **Documentation.** Rewritten: Get started now leads with `init`, and there are guides for embedding entries,
161
+ preprocessing, large references and publishing. Large references' Develop with less memory runs
162
+ `next dev --disable-source-maps` for pages of many source blocks, and says that Turbopack's loader workers, one per
163
+ CPU, need memory beyond the server's heap. The references cover every command, key, component and generated file.
164
+ For AI agents is a brief, with Complete rules; old addresses redirect. The Showcase adds LAPACK's gesv, syev and heev
165
+ and gemm groups and json-fortran from its FORD file. On the site, a page of a trimmed route has no breadcrumb, and
166
+ its footer's Previous and Next links do not prefetch.
167
+
168
+ ## 0.1.0 (2026-11-30)
169
+
170
+ The first release: a Fortran parser in plain JavaScript; a doc-comment engine for FORD, Doxygen and LAPACK comments; the
171
+ MDX pages that `fumadocs-fortran generate` writes, with the React components and the stylesheet they use; the HPC
172
+ registry behind their library cards and graph colours; Shiki grammars for Fortran code blocks; and the MDX options,
173
+ loader plugin and Mermaid component with which a Fumadocs site takes them in.
174
+
175
+ The 0.0.0 that npm lists, published on 23 November 2026 to hold the package's name, has no section here.
12
176
 
13
177
  - **Parser.** A statement-level Fortran parser in plain JavaScript, with no dependencies:
14
178
  - free and fixed form, decided from the extension or, for `.F` and `.fpp`, from the text; continuation lines,
@@ -18,7 +182,7 @@ registry behind their library cards and graph colours; and Shiki grammars for Fo
18
182
  `#include`, line markers, and an option to keep every branch;
19
183
  - Fortran `include` lines, resolved from the including file's folder and then the include directories;
20
184
  - OpenMP, OpenACC, CUDA Fortran and vendor directives, with continuation lines; `!$` lines count as code only when
21
- `_OPENMP` is defined;
185
+ `_OPENMP` is defined or every branch is kept;
22
186
  - modules, submodules, programs, block data, external, module, internal and separate module procedures, interface
23
187
  blocks of every kind, derived types with components, type parameters, bindings, generics and finalisers, enums,
24
188
  module variables and parameters, `use` with `only` and renames, access, common blocks and namelists; a module
@@ -42,34 +206,36 @@ registry behind their library cards and graph colours; and Shiki grammars for Fo
42
206
  counts per file with `--summary`; `fumadocs-fortran generate` writes the API reference into the content folder `-o`
43
207
  names. Both take `-D`, `-I`, `--all-branches`, `--form`, `--fixed-length` and `--exclude`; generate also takes
44
208
  `--base-url`, `--title`, `--display`, `--repo`, `--rev`, `--math`, `--source`, `--graphs`, `--library-cards` and
45
- `--links`, and `--help` lists them all. `--repo` links each entity to its lines in GitHub's form
46
- (`URL/blob/REV/FILE#L10-L20`). An unknown command, `init`, `check` and `doctor` among them, ends with
47
- `unknown command init; the commands are dump and generate` and exit code 2. The counts take the singular for one:
48
- `1 file`, `1 source`, `1 line`, `1 entity`, `1 diagnostic`.
49
- - **Doc comments.** The engine reads each entity's comments in the style they were written in: FORD (Markdown,
50
- metadata lines, `@note`…`@endnote`, `[[links]]`, `\( \)` maths), Doxygen (`\brief`, `\param[in]`, `\return`,
51
- `\note`, `\see`, `\verbatim`, `\f$` maths) or LAPACK (argument docs in `\verbatim` blocks, intents from
52
- `\param[in]` for F77 code that declares none). Doxygen and LAPACK text is escaped as plain text, so `B(LDB,*)`
53
- never turns into emphasis, while an underscore inside a name stays as written: Markdown never takes one for
54
- emphasis, and search then finds `norm2_parallel` as one word, in a heading as in the text.
209
+ `--links`; `--help` lists them all, and `--version` prints the version. `--repo` links each entity to its lines in
210
+ GitHub's form (`URL/blob/REV/FILE#L10-L20`). A mistake on the command line ends with a message and exit code 2, such
211
+ as `unknown command NAME; the commands are dump and generate` for an unknown command; diagnostics are warnings, which
212
+ leave the exit code 0. The counts take the singular for one: `1 file`, `1 source`, `1 line`, `1 entity`,
213
+ `1 diagnostic`.
214
+ - **Doc comments.** The engine reads each entity's comments in the style they were written in: FORD (Markdown, metadata
215
+ lines, `@note`…`@endnote`, `[[links]]`, `\( \)` maths and `{!file!}` includes, which `generate` reads only from under
216
+ the folder it runs in), Doxygen (`\brief`, `\param[in]`, `\return`, `\note`, `\see`, `\verbatim`, `\f$` maths) or
217
+ LAPACK (argument docs in `\verbatim` blocks, intents from `\param[in]` for F77 code that declares none). Doxygen and
218
+ LAPACK text is escaped as plain text, so `B(LDB,*)` never turns into emphasis, while an underscore inside a name stays
219
+ as written: Markdown never takes one for emphasis, and search then finds `norm2_parallel` as one word, in a heading as
220
+ in the text.
55
221
  - **Maths.** LaTeX in doc comments renders with KaTeX, in every notation Fortran codes use: `$…$`, `$$…$$`, `\( \)`,
56
222
  `\[ \]`, `\begin{equation}` and the other environments, bare `\begin{array}`-style environments, Doxygen's
57
223
  `\f$ \f[ \f{env}{`, and reStructuredText's `:math:` and `.. math::`. Dollars that are not maths (money, shell
58
224
  variables, `!$omp`, `$Id$`) stay text. TeX that MathJax accepts and KaTeX does not is rewritten (`eqnarray`,
59
225
  `multline`, `_` in `\text{…}`), and `katexMacros` (from `fumadocs-fortran/math`) defines the physics-package and
60
226
  other commands KaTeX lacks. `generate --math code` shows maths as code, for a site without remark-math.
61
- - **Pages.** `fumadocs-fortran generate` writes one MDX page per module, submodule, program and block data unit,
62
- groups external procedures by `\ingroup`, or else by file, and writes `meta.json` for the sidebar. Every entity gets
63
- a `###` heading with a stable ID, its signature, badges (OpenMP regions, OpenACC, offload, MPI, coarrays, cpp
64
- conditions), its documentation, its arguments and, with `--repo`, a link to its lines. A manifest makes regeneration
65
- delete only stale generated files. On
66
- 20 November 2026, all 2,105 pages generated from LAPACK, ScaLAPACK, json-fortran, stdlib, Quantum ESPRESSO,
67
- Wannier90 and miniWeather compiled as MDX. Units that share a name get the name, then the name and kind, then a
68
- number after an underscore (`miniweather`, `miniweather-program`, `miniweather-program_2`, …), and a slug that
69
- holds its kind takes the number alone (`module-index_2`, `blockdata_2`). No page's URL ends in `-` and a number,
70
- the form Fumadocs' search gives the IDs of a page's records, so that no page shares its ID with another page's
71
- record, which would stop a site's search index from building. A group of external procedures named so, as a file
72
- `fft-2.f90` makes one, takes its kind (`fft-2-procedures`).
227
+ - **Pages.** `fumadocs-fortran generate` writes one MDX page per module, submodule, program and block data unit, groups
228
+ external procedures by `\ingroup`, or else by file, and writes an overview page, with a card for each page and a graph
229
+ of the modules, submodules and programs and the HPC libraries they use (none for more than 80 of them), and
230
+ `meta.json` for the sidebar. Each type, interface, procedure, variable and enumeration gets a `###` heading with a
231
+ stable ID, its signature, badges (OpenMP regions, OpenACC, offload, CUDA Fortran, MPI, coarrays, cpp conditions), its
232
+ documentation, its arguments and, with `--repo`, a link to its lines. A manifest makes regeneration delete only stale
233
+ generated files. Units that share a name get the name, then the name and kind, then a number after an underscore
234
+ (`miniweather`, `miniweather-program`, `miniweather-program_2`, …), and a slug that holds its kind takes the number
235
+ alone (`module-index_2`, `blockdata_2`). No page's URL ends in `-` and a number, the form Fumadocs' search gives the
236
+ IDs of a page's records, so that no page shares its ID with another page's record, which would stop a site's search
237
+ index from building. A group of external procedures named so, as a file `fft-2.f90` makes one, takes its kind
238
+ (`fft-2-procedures`).
73
239
  - **Tables, cards and source.** Arguments, results, components, type parameters, type-bound procedures and
74
240
  enumerators are tables in the manner of Fumadocs' `TypeTable`, with only the columns some row fills (name, type,
75
241
  shape, intent, attributes); a row opens to its documentation, its declaration as Fortran, its intent and each
@@ -83,10 +249,10 @@ registry behind their library cards and graph colours; and Shiki grammars for Fo
83
249
  meaning and the `use` statement that renames them (`dp ⇒ real64`). A card sits inside its name, a link or, with
84
250
  nowhere to link, a button; it shows on hover and keyboard focus, describes the name to screen readers, and is
85
251
  placed against the screen where the browser has CSS anchor positioning. Each procedure's, type's, interface's,
86
- variable's and enum's source is a block that opens, numbered from its first line and read from the files parsed
87
- wherever they lie (`--source link` only links). The Fortran in tables and cards reads left to right on
88
- right-to-left pages. Each page's front matter lists its headings' kinds, for the letters `fortranToc()` puts in
89
- Fumadocs' table of contents.
252
+ variable's and enum's source, when it spans 400 lines or fewer, is a block that opens, numbered from its first line
253
+ and read from the files parsed wherever they lie (`--source link` only links). The Fortran in tables and cards reads
254
+ left to right on right-to-left pages. Each page but the overview has `fortran` front matter, with its kind and its
255
+ headings' kinds, from which `fortranPlugin()` (below) gives Fumadocs' sidebar and tables of contents their letters.
90
256
  - **Meanings.** Every badge, intent, attribute and condition pill, shape, `*` or `:` of a character length, and
91
257
  `kind` or `len` of a type parameter's type (`integer, kind`) says what it means in a card on hover, in the look of
92
258
  the hover cards: `allocatable`, `pass(self)`, `default dp`, `when USE_MPI`, `(:,:)` ("rank 2, assumed shape"),
@@ -103,8 +269,8 @@ registry behind their library cards and graph colours; and Shiki grammars for Fo
103
269
  (`--graphs none` leaves them out; `buildGraphs` exports them), with calls and function references resolved through
104
270
  `use`, renames, host association, generics, type-bound procedures and submodules. Routines from outside the project
105
271
  are coloured by library, from the registry (below) or a site's `graphs.classify`, and by name for MPI, OpenMP,
106
- OpenACC, CUDA, the coarray collectives and BLAS. `style.css` gives graphs drawn by Pele the theme's colours, their
107
- lines and labels included.
272
+ OpenACC, CUDA, the coarray collectives and BLAS. `style.css` gives graphs drawn by Pele, which
273
+ `fumadocs-fortran/mermaid` (below) uses, the theme's colours, their lines and labels included.
108
274
  - **HPC registry.** `registry/` holds the build-time data of the HPC layer: 4,602 entries, and 533 more of vendor
109
275
  data, in 1.21 MB (0.23 MB gzipped). It covers BLAS and LAPACK 3.12.1 (2,265 routines in 584 precision families,
110
276
  taken from `\ingroup`, the 155 of BLAS marked as BLAS), ScaLAPACK 2.2.2 with its tools, PBLAS, REDIST and BLACS
@@ -184,55 +350,62 @@ registry behind their library cards and graph colours; and Shiki grammars for Fo
184
350
  `fortran-free-form` and the rest) as aliases, so every Fortran fence uses them in whichever order the grammars
185
351
  load. `fortranRehypeCode()` adds them to Fumadocs' `rehypeCode` with two transformers: one marks directive lines,
186
352
  which `style.css` tints in the colours of the badges, and one makes Fumadocs' `[!code …]` notations work in `!`
187
- comments. `scripts/build-grammars.mjs` builds them from tm-grammars 1.32.22 (MIT), checking every upstream rule it
188
- patches. `npm run test:shiki` checks scope snapshots on both of Shiki's regex engines, load orders in Shiki and
189
- through `fumadocs-core` 16.19, the transformers, and the cost of the directives and fypp: under 10% more
190
- tokenising time on Shiki's JavaScript engine and 15–20% on Oniguruma, within a budget of 25% (6% and 18% on
191
- 22 November 2026). The documentation site uses them, and its Highlighting page describes them.
192
- - **JavaScript API.** The main entry exports what `types/index.d.ts` declares, and `fumadocs-fortran/math` exports
193
- `katexMacros` and `normaliseTex`; the stages of the pipeline (`preprocess`, `macroTable`, `CondTable`, `readEvents`
194
- and `parseEvents`) and the maths helpers of the generator are internal. The types declare `renderDoc`'s options
195
- (`RenderDocOptions`: `ns`, `include` and `aliases` among them), `escapeText`'s `links`, `safeMarkdown`'s `math` and
196
- the `defaultOpen` of the sidebar's `meta.json`, and describe each doc-comment mark as the character after a
197
- comment's `!`: `docmark: '!'` reads `!!` comments.
353
+ comments. `scripts/build-grammars.mjs` builds them from the Fortran grammars of vscode-fortran-support (MIT), as
354
+ tm-grammars 1.32.22 publishes them, checking every upstream rule it patches. `npm run test:shiki` checks scope
355
+ snapshots on both of Shiki's regex engines, load orders in Shiki and through `fumadocs-core` 16.19, the transformers,
356
+ and the cost of the directives and fypp, at most 25% more tokenising time (6% on Shiki's JavaScript engine and 18% on
357
+ Oniguruma on 22 November 2026). The documentation site uses them, and its Highlighting page describes them.
358
+ - **JavaScript API.** Each JavaScript entry point has its type declarations. The main entry, for Node.js, exports what
359
+ `types/index.d.ts` declares, `generate`, `extract`, `parseSource` and `buildPages` among them; the stages of the
360
+ pipeline (`preprocess`, `macroTable`, `CondTable`, `readEvents` and `parseEvents`) and the maths helpers of the
361
+ generator are internal. `fumadocs-fortran/react` exports the components, as `fortranComponents` for a site's MDX
362
+ components, with `createFortranComponents` and `fortranToc`; `fumadocs-fortran/style.css` is their stylesheet, plain
363
+ CSS on Fumadocs' colour variables, which needs no Tailwind `@source` line and whose own colours are `--fdf-*` custom
364
+ properties a site can set; and `fumadocs-fortran/math` exports `katexMacros` and `normaliseTex`. The types declare
365
+ `renderDoc`'s options (`RenderDocOptions`: `ns`, `include` and `aliases` among them), `escapeText`'s `links`,
366
+ `safeMarkdown`'s `math` and the `defaultOpen` of the sidebar's `meta.json`, and describe each doc-comment mark as the
367
+ character after a comment's `!`: `docmark: '!'` reads `!!` comments.
198
368
  - **Fumadocs integration.** A site takes the package as it takes Fumadocs' own integrations, with a few lines in the
199
369
  files it has. `fumadocs-fortran/mdx`'s `withFortran()` gives a docs collection's MDX options the Fortran grammars in
200
- Fumadocs' code blocks and the components' text, rather than their tags, in the search records, and on request maths
201
- (remark-math and rehype-katex, KaTeX before the code blocks, with `katexMacros`) and graphs (`remarkMdxMermaid`);
202
- `fortranPageSchema()` keeps the generated pages' `fortran` front matter on any Standard Schema, such as Fumadocs'
203
- `pageSchema`. `fumadocs-fortran/source`'s `fortranPlugin()`, a loader plugin, gives the generated pages' tables of
204
- contents the letters of their entries' kinds, and their sidebar entries the letters of their own, with no change to
205
- the page template. `fumadocs-fortran/mermaid` draws ` ```mermaid ` blocks with Pele, at build time, in Fumadocs'
206
- colours, with a second layout for phones on request, and `createFortranComponents({ href })` passes the components'
207
- links to the site's pages through a function, such as one that adds the base path a site is served under.
208
- `fumadocs-core` and `pele` are optional peer dependencies, as React is.
209
- - **Documentation.** [The documentation site](https://nevensky.github.io/fumadocs-fortran/) has Get started, which
210
- adds the reference to a Fumadocs site, and Start a new site, which makes one from Fumadocs' static template, both
211
- of which a workflow runs as a reader would before every deploy; guides to maths and graphs, generating the
212
- reference, moving from FORD or Doxygen, publishing on GitHub Pages and large references; the references, How it
213
- works, and the Showcase, generated from `examples/modern`. Keeping the components' tags out of the search index, as
370
+ Fumadocs' code blocks and the components' text, rather than their tags, in the search records, and on request maths,
371
+ with the site's remark-math and rehype-katex (KaTeX before the code blocks, with `katexMacros`), and graphs
372
+ (`remarkMdxMermaid`); `fortranPageSchema()` keeps the generated pages' `fortran` front matter on any Standard Schema,
373
+ such as Fumadocs' `pageSchema`. `fumadocs-fortran/source`'s `fortranPlugin()`, a loader plugin, gives the generated
374
+ pages' tables of contents the letters of their entries' kinds, and their sidebar entries the letters of their own,
375
+ with no change to the page template. `fumadocs-fortran/mermaid`'s `Mermaid` component draws ` ```mermaid ` blocks with
376
+ Pele where the page renders, with no script in the browser, in Fumadocs' colours, with a second layout for phones on
377
+ request, and shows a diagram Pele cannot draw as its code; `createFortranComponents({ href })` passes the components'
378
+ links to the site's pages through a function, such as one that adds the base path a site is served under. The package
379
+ needs Node.js 18 or later; `fumadocs-core` 16 or later, `pele` 1.13 or later and React 18 or later are optional peer
380
+ dependencies, which only the entry points that use them need.
381
+ - **Documentation.** [The documentation site](https://nevensky.github.io/fumadocs-fortran/) has Get started, which adds
382
+ the reference to a Fumadocs site, and Start a new site, which makes one from Fumadocs' static template, both of which
383
+ a workflow runs as a reader would before every deploy; guides to maths and graphs, generating the reference, moving
384
+ from FORD or Doxygen, publishing on GitHub Pages, large references and troubleshooting; the references, How it works,
385
+ and the Showcase, generated from `examples/modern`. Keeping the components' tags out of the search index, as
214
386
  `withFortran` does, made the site's index 24% smaller (18% gzipped) on 22 November 2026, and that of stdlib's pages
215
- 73% smaller (64% gzipped). The guides also say when to turn off the sidebar's prefetch for large references. They
216
- name the static search route `search.json`, as the site's own route is (`app/api/search.json/route.ts`), so that a
217
- server that compresses by type, such as nginx or `serve`, sends the index compressed, as GitHub Pages does under
218
- either name: on 22 November 2026, with nginx and a phone on slow 4G, the site's first result came 3.7 s after the
219
- first key, and 13.1 s with the index uncompressed. Large references gives the page template the table of contents'
220
- column from the first paint, with a hidden element of the table of contents' class, as the site's docs pages have
221
- it: without it, a long page moved on a desktop screen when its table of contents arrived, a layout shift of up to
222
- 0.44.
223
- The site's build checks the pages against the code first: Command line against the command's help, messages,
224
- diagnostics and exit codes, JavaScript API against the entry points' exports and types, the examples of Doc
225
- comments against what `generate()` writes for them, and Components against the components' props and the
226
- stylesheet.
227
- - **The parser gate** (`scripts/gate.mjs`) checks the parser against oracles that share no code with it: a golden file
228
- of 41 argument attributes, the signatures documented in Reference-LAPACK (2,300 of 2,300 routines), and a census of
229
- program units in gcc's preprocessor output for LAPACK, ScaLAPACK, json-fortran, Quantum ESPRESSO, stdlib, Wannier90
230
- and miniWeather (none lost). It fails below 200,000 lines a second; on 22 November 2026 it parsed the 2.16 million
231
- lines of those codes at 1.09 million lines a second, with the sources in memory.
232
- - **FORD as an oracle**, on demand: across all of LAPACK, json-fortran and Wannier90, FORD 7.0.13 agreed with the
233
- parser on the type, kind, length, intent, `optional`, `value` and dimensions of all 32,728 dummy arguments when
234
- this was checked, on 19 November 2026. The 24 differences it showed are FORD's errors, listed with their reasons
235
- in `scripts/oracle/ford-allow.json`.
387
+ 73% smaller (64% gzipped). The guides also say when to turn off the sidebar's prefetch for large references. They name
388
+ the static search route `search.json`, as the site's own route is (`app/api/search.json/route.ts`), so that a server
389
+ that compresses by type, such as nginx or `serve`, sends the index compressed, as GitHub Pages does under either name:
390
+ on 22 November 2026, with nginx and a phone on slow 4G, the site's first result came 3.7 s after the first key, and
391
+ 13.1 s with the index uncompressed. Large references gives the page template the table of contents' column from the
392
+ first paint, with a hidden element of the table of contents' class, as the site's docs pages have it: without it, on
393
+ 22 November 2026, a long page of the site moved on a desktop screen when its table of contents arrived, a layout shift
394
+ of up to 0.44. The site's build checks the pages against the code first: Command line against the command's help,
395
+ messages, diagnostics and exit codes, JavaScript API against the entry points' exports and types, the examples of Doc
396
+ comments against what `generate()` writes for them, and Components against the components' props and the stylesheet.
397
+ - **Parser gate.** `scripts/gate.mjs` checks the parser against oracles that share no code with it: a golden file of the
398
+ attributes of 41 dummy arguments, the signatures documented in Reference-LAPACK (it needs 99% to match; on 30 November
399
+ 2026, 2,300 of 2,300 routines did), and a census of program units in gcc's preprocessor output for LAPACK, ScaLAPACK,
400
+ json-fortran, Quantum ESPRESSO, stdlib, Wannier90 and miniWeather (none lost). It fails below 200,000 lines a second;
401
+ on 22 November 2026 it parsed the 2.16 million lines of those codes at 1.09 million lines a second, with the sources
402
+ in memory.
403
+ - **FORD as an oracle.** Run on demand on 19 November 2026, FORD 7.0.13 and the parser gave the same type, kind, length,
404
+ intent, `optional`, `value` and dimensions for all 32,728 dummy arguments of LAPACK, json-fortran and Wannier90, apart
405
+ from 24 values that FORD gets wrong, which `scripts/oracle/ford-allow.json` lists with their reasons.
236
406
  - **Tests.** `npm test` gives each run a scratch folder of its own under `test/out`, removed when every check passes
237
407
  and kept, with its path printed, when one fails or the run stops with an error, so that runs side by side do not
238
408
  disturb each other.
409
+ - **Releases.** A version goes to npm from a tag: pushing a tag such as `v0.1.0` runs `.github/workflows/release.yml`,
410
+ which tests the tagged commit and stages its version by trusted publishing, with no npm token, and npm publishes the
411
+ version once a maintainer approves it with two-factor authentication. Contributing gives the routine.
package/README.md CHANGED
@@ -1,98 +1,62 @@
1
1
  # fumadocs-fortran
2
2
 
3
- Fortran API reference for [Fumadocs](https://www.fumadocs.dev/). It reads Fortran sources with its own parser, written
4
- in plain JavaScript with no dependencies, and writes their API reference as MDX pages that a Fumadocs site builds like
5
- its hand-written pages. It reads the doc comments that projects write in FORD, Doxygen and LAPACK style, and it
6
- understands high-performance computing (HPC) code: OpenMP and OpenACC directives, MPI and coarrays, the conditions of
7
- the C preprocessor (cpp), and calls into BLAS, LAPACK and ScaLAPACK.
3
+ Fortran API reference for [Fumadocs](https://www.fumadocs.dev/), the documentation framework by
4
+ [Fuma Nama](https://github.com/fuma-nama) that it extends. It reads your Fortran with its own parser, and its doc
5
+ comments in FORD, Doxygen or LAPACK style. Its pages, which your Fumadocs site builds with its own, show what
6
+ high-performance computing (HPC) code uses: OpenMP, OpenACC, MPI and calls into BLAS, LAPACK and ScaLAPACK.
8
7
 
9
- **Pre-release.** fumadocs-fortran installs from GitHub, and its pages, options and components can change in any 0.x
10
- version.
8
+ fumadocs-fortran 0.9.0 installs from npm; its pages, options and components can still change before 1.0.0, while the
9
+ model that dump writes stays at IR 1.x.
11
10
 
12
- The documentation is at [nevensky.github.io/fumadocs-fortran](https://nevensky.github.io/fumadocs-fortran/).
11
+ ## Try it
13
12
 
14
- ## Install
13
+ In your Fumadocs site's folder, such as `docs/` beside `src/`:
15
14
 
16
- The package needs Node.js 18 or later, and npm runs Git to install it from GitHub. A Fumadocs site needs Node.js 22.22
17
- or a later 22 release, or Node.js 24.11 or later. Install the package in the site's folder, such as `docs/` in your
18
- project:
15
+ ```bash
16
+ npm install fumadocs-fortran
17
+ ```
19
18
 
20
19
  ```bash
21
- npm install github:Nevensky/fumadocs-fortran --allow-git=root
20
+ npx fumadocs-fortran init --root ..
22
21
  ```
23
22
 
24
- npm 12 installs a package from GitHub only with `--allow-git=root`; npm 10 and 11 do not need the flag, and npm
25
- 11.12.1 refuses the install even with it
26
- ([Troubleshooting](https://nevensky.github.io/fumadocs-fortran/docs/guides/troubleshooting/#eallowgit-non-root)). To
27
- pin a commit, write it after a `#`: `github:Nevensky/fumadocs-fortran#<commit>`.
23
+ `init` writes `fumadocs-fortran.config.mjs` in your project's top folder, and prints the next commands and the edits
24
+ your site needs. Add a script that generates the reference, and run it:
28
25
 
29
- [Get started](https://nevensky.github.io/fumadocs-fortran/docs/get-started/) adds the reference to a Fumadocs site,
30
- as Fumadocs' own integrations are added: the package's MDX options and loader plugin in the site's content source,
31
- its components and its stylesheet. [Start a new site](https://nevensky.github.io/fumadocs-fortran/docs/new-site/)
32
- makes a site for a project without one.
26
+ ```bash
27
+ npm pkg set scripts.reference="cd .. && fumadocs-fortran generate"
28
+ ```
29
+
30
+ ```bash
31
+ npm run reference
32
+ ```
33
+
34
+ It writes the reference into `content/docs/api`. The site builds once it has the edits `init` prints, as
35
+ [Get started](https://nevensky.github.io/fumadocs-fortran/docs/get-started/#source) makes them.
33
36
 
34
37
  ## Documentation
35
38
 
36
- - [Get started](https://nevensky.github.io/fumadocs-fortran/docs/get-started/): from the Fortran in your `src/` to its
37
- API reference in your Fumadocs site.
38
- - [Start a new site](https://nevensky.github.io/fumadocs-fortran/docs/new-site/): a Fumadocs site in a `docs/` folder
39
- of your project, from Fumadocs' static template.
40
- - [Set up your site](https://nevensky.github.io/fumadocs-fortran/docs/guides/site-setup/): maths and graphs on the
41
- generated pages, and updates of the package.
42
- - [Generate the reference](https://nevensky.github.io/fumadocs-fortran/docs/guides/generate/): the build to document,
43
- with its cpp macros and include folders, what the pages show, the links to your repository, and running it again.
44
- - [Move from FORD or Doxygen](https://nevensky.github.io/fumadocs-fortran/docs/guides/from-ford-doxygen/): what carries
45
- over from a FORD project file or a Doxyfile, and what works differently.
46
- - [Publish on GitHub Pages](https://nevensky.github.io/fumadocs-fortran/docs/guides/github-pages/): the site at your
47
- repository's GitHub Pages address, built by a workflow.
48
- - [Large references](https://nevensky.github.io/fumadocs-fortran/docs/guides/large-references/): a search index named
49
- `search.json` for the servers that compress by type, no prefetching of large pages, and no layout shift on long
50
- ones.
51
- - [Troubleshooting](https://nevensky.github.io/fumadocs-fortran/docs/guides/troubleshooting/): each message or symptom,
52
- its cause and its fix.
53
- - [Command line](https://nevensky.github.io/fumadocs-fortran/docs/reference/cli/): `dump` and `generate`, with every
54
- option, default, message and exit code.
55
- - [JavaScript API](https://nevensky.github.io/fumadocs-fortran/docs/reference/javascript/): the exported functions,
56
- `generate`, `extract` and `parseSource` among them, and the options that have no flag.
57
- - [Doc comments](https://nevensky.github.io/fumadocs-fortran/docs/reference/doc-comments/): what is read in FORD,
58
- Doxygen and LAPACK style, and what it becomes.
59
- - [Components](https://nevensky.github.io/fumadocs-fortran/docs/reference/components/): the badges, the tables whose
60
- rows open, the hover cards and meanings, the library cards from the HPC registry, the source blocks and graphs, and
61
- their styling.
62
- - [Highlighting](https://nevensky.github.io/fumadocs-fortran/docs/reference/highlighting/): `fumadocs-fortran/shiki`,
63
- Shiki grammars for Fortran in free and fixed form that highlight OpenMP, OpenACC, CUDA Fortran and compiler
64
- directives, and fypp, in any Fumadocs or Shiki site.
65
- - [Generated files](https://nevensky.github.io/fumadocs-fortran/docs/reference/generated-files/): every file
66
- `generate` writes, its name, front matter and anchors, and how a later run treats it.
67
- - [How it works](https://nevensky.github.io/fumadocs-fortran/docs/how-it-works/): from the sources to the pages, one
68
- build at a time, the library names, the graphs and what the model leaves out.
69
- - [Showcase](https://nevensky.github.io/fumadocs-fortran/docs/showcase/): the reference generated for
70
- `examples/modern`, beside its sources.
71
- - [Changelog](https://nevensky.github.io/fumadocs-fortran/docs/changelog/) and
72
- [Contributing](https://nevensky.github.io/fumadocs-fortran/docs/contributing/).
73
-
74
- A site takes the package through its entry points: `fumadocs-fortran/mdx` (`withFortran` and `fortranPageSchema`)
75
- and `fumadocs-fortran/source` (`fortranPlugin`) in its content source, `fumadocs-fortran/react` and
76
- `fumadocs-fortran/mermaid` among its MDX components, and `fumadocs-fortran/style.css` in its global CSS.
77
- [JavaScript API](https://nevensky.github.io/fumadocs-fortran/docs/reference/javascript/) has each of them.
39
+ The documentation is at [nevensky.github.io/fumadocs-fortran](https://nevensky.github.io/fumadocs-fortran/):
40
+
41
+ - [Get started](https://nevensky.github.io/fumadocs-fortran/docs/get-started/), with your Fumadocs site or a new one;
42
+ - [Showcase](https://nevensky.github.io/fumadocs-fortran/docs/showcase/), references of an example and of real
43
+ libraries;
44
+ - [Changelog](https://nevensky.github.io/fumadocs-fortran/docs/changelog/), what each release changed;
45
+ - [For AI agents](https://nevensky.github.io/fumadocs-fortran/docs/agents/), the commands, invariants and exit codes.
78
46
 
79
47
  ## Licence
80
48
 
81
- MIT ([LICENSE](https://github.com/Nevensky/fumadocs-fortran/blob/main/LICENSE)). The package also ships material from
82
- other projects under their own licences: the HPC registry draws on Reference-LAPACK, ScaLAPACK, Open MPI, LLVM and
83
- others (BSD-style licences, MIT, Apache-2.0 with the LLVM exception), and the code-block grammars on
84
- vscode-fortran-support (MIT). Their notices are in
49
+ MIT ([LICENSE](https://github.com/Nevensky/fumadocs-fortran/blob/main/LICENSE)), by
50
+ [Neven Golenić](https://github.com/Nevensky), who maintains it. The HPC registry and the code-block grammars hold
51
+ others' material, under the licences in
85
52
  [registry/NOTICE](https://github.com/Nevensky/fumadocs-fortran/blob/main/registry/NOTICE) and
86
- [shiki/NOTICE](https://github.com/Nevensky/fumadocs-fortran/blob/main/shiki/NOTICE), and
87
- [registry/SOURCES.md](https://github.com/Nevensky/fumadocs-fortran/blob/main/registry/SOURCES.md) lists the registry's
88
- sources. Test corpora keep their own licences and are only fetched, never committed or shipped.
89
-
90
- ## Citing, issues and contributing
91
-
92
- - To cite fumadocs-fortran, use
93
- [CITATION.cff](https://github.com/Nevensky/fumadocs-fortran/blob/main/CITATION.cff), or GitHub's "Cite this
94
- repository".
95
- - Report a problem in the [issues](https://github.com/Nevensky/fumadocs-fortran/issues); for one in the
96
- documentation, use its [form](https://github.com/Nevensky/fumadocs-fortran/issues/new?template=documentation.yml).
97
- - [docs/CONTRIBUTING.md](https://github.com/Nevensky/fumadocs-fortran/blob/main/docs/CONTRIBUTING.md) says how to work
98
- on the package and its documentation.
53
+ [shiki/NOTICE](https://github.com/Nevensky/fumadocs-fortran/blob/main/shiki/NOTICE).
54
+
55
+ ## Cite, report, contribute
56
+
57
+ - Cite it with [CITATION.cff](https://github.com/Nevensky/fumadocs-fortran/blob/main/CITATION.cff), or GitHub's
58
+ "Cite this repository".
59
+ - Report a problem in the [issues](https://github.com/Nevensky/fumadocs-fortran/issues), or one in the documentation
60
+ with its [form](https://github.com/Nevensky/fumadocs-fortran/issues/new?template=documentation.yml).
61
+ - [docs/CONTRIBUTING.md](https://github.com/Nevensky/fumadocs-fortran/blob/main/docs/CONTRIBUTING.md) says how to
62
+ work on the package and its documentation.