Skip to content

Commit 939b5b9

Browse files
committed
deslop
1 parent 10aafeb commit 939b5b9

1 file changed

Lines changed: 8 additions & 37 deletions

File tree

‎website/README.md‎

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
# Command reference site
22

3-
The [Hugo](https://gohugo.io) site published to
4-
<https://flagsmith.github.io/flagsmith-cli/> by
5-
[`.github/workflows/docs.yml`](../.github/workflows/docs.yml) on every release
6-
tag.
7-
8-
The site *is* the command reference: all of `content/` is generated from the
9-
CLI's own help text by [`cmd/docgen`](../cmd/docgen) and is gitignored. Nothing
10-
about a command is written here by hand — fix the `Short`, `Long` or `Example`
11-
on the command itself in `internal/cmd/` and the page follows. There is
12-
deliberately no landing page: installing and getting started are documented in
13-
the [README](../README.md#install) and on
14-
[docs.flagsmith.com](https://docs.flagsmith.com/integrating-with-flagsmith/CLI),
15-
and a third copy here would be the one that goes stale.
16-
17-
The command tree becomes a directory tree, so `flagsmith flag update` is served
18-
at `/flag/update/`, the `flagsmith` root command is the home page, and the
19-
sidebar nests the way the CLI does.
3+
The [Hugo](https://gohugo.io) site published to <https://flagsmith.github.io/flagsmith-cli/> on every release.
4+
5+
All of `content/` is generated from the CLI's own help text by [`cmd/docgen`](../cmd/docgen) and is gitignored.
206

217
## Preview locally
228

@@ -32,24 +18,9 @@ Then open <http://localhost:1313>. Re-run `docgen` after changing help text.
3218

3319
## What is hand-written
3420

35-
| Path | Purpose |
36-
| --- | --- |
37-
| `hugo.yaml` | Site config, navigation, theme |
38-
| `layouts/_partials/navbar-title.html` | Theme override: version badge |
21+
| Path | Purpose |
22+
| -------------------------------------- | ---------------------------------- |
23+
| `hugo.yaml` | Site config, navigation, theme |
24+
| `layouts/_partials/navbar-title.html` | Theme override: version badge |
3925
| `layouts/_partials/custom/footer.html` | Names the release being documented |
40-
| `layouts/home.html` | Theme override, see below |
41-
42-
Only the newest release is published: Pages serves a single artifact, so there
43-
are no `/vX.Y.Z/` URLs. The version is therefore shown twice — as a badge beside
44-
the navbar title, where it is seen without scrolling, and once in the footer with
45-
the context that explains it. Both read `params.version` in `hugo.yaml`, which
46-
release-please bumps in its release pull request (`website/hugo.yaml` is one of
47-
its `extra-files`), so a plain `hugo server` shows exactly what a deploy would.
48-
49-
Hextra's home layout hides the sidebar, which would leave the front page — the
50-
root command's own page — with no navigation at all. `layouts/home.html` is the
51-
theme's ordinary reference-page layout, copied so the home page gets the command
52-
tree too. Re-check it against the theme when bumping Hextra.
53-
54-
`go.mod` here is a Hugo module file and is intentionally separate from the CLI's
55-
own `go.mod`, so the theme never becomes a dependency of the released binary.
26+
| `layouts/home.html` | Theme override |

0 commit comments

Comments
 (0)