Commit graph

144 commits

Author SHA1 Message Date
LudovicDeMatteis
0ec7ea3d62
user-configs: add @LudovicDeMatteis's config
user-configs: add @LudovicDeMatteis's config
2025-05-02 00:30:49 +02:00
Matt Sturgeon
04c3247144
docs: ensure path is escaped when copying module docs
Without escaping the path here, filepaths for options named things like
`*` will result in undefined behaviour.
2025-05-01 00:12:39 +01:00
Matt Sturgeon
9caeb51238
docs: don't remove freeform sub-options
This isn't a fully correct fix, but it's much closer to the intended
behaviour.
2025-04-29 09:36:06 +01:00
Jeremy Fleischman
f42468972c
Fix typo: nix lists are space separated, not comma separated 2025-04-23 21:11:52 -07:00
Henry Fraser
d4a0db2103 docs: fix typo 2025-04-22 10:08:34 +10:00
Matt Sturgeon
6f8d8f7aee
docs/fix-links: generalise checks for links targeting .
- Strip trailing `?query` and/or `#anchor`
- Strip leading `./` recursively
- Check if what's left is `""` or `"."`

Any link that targets the current page should be left as-is (no-op).
2025-02-25 21:47:17 +00:00
Matt Sturgeon
977b7a9fa3
docs/fix-links: pandoc markdown -> gfm
We are essentially writing GFM e.g. inline HTML comments and GFM alerts.
So tell pandoc to parse/render as such. This resolves issues such as:
`> [!TIP]` being escaped to `> \[!TIP\]`.
2025-02-24 21:14:16 +00:00
Matt Sturgeon
a39e0a6516
docs/fix-links: handle #anchor targets on the same page 2025-02-14 10:10:37 +00:00
Matt Sturgeon
7f29e4b2ae
docs/fix-links: init
The README/CONTRIBUTING files are authored with GitHub in mind, but we
want to re-use them for the docs website.

Replace the existing simple substitution with a pandoc AST-based filter.
2025-02-13 18:05:54 +00:00
Matt Sturgeon
f584d1d70d
docs/mdbook: support visible = "shallow" 2025-01-29 22:02:34 +00:00
Austin Horstman
af4483c025
docs/lazy-loading: add extra examples 2025-01-27 10:32:14 -06:00
Matt Sturgeon
d7df583211
docs: eval modules without access to pkgs
Replace the `package-options` test with a stricter implementation.

When evaluating modules for use in the docs, provide them with a stubbed
`pkgs` instance that throws an error whenever a package is evaluated.

This ensures we don't accidentally use any packages in defaults or
examples.
2025-01-25 19:16:09 +00:00
Matt Sturgeon
0b4a4e8327
docs: don't set allowUnfree
We shouldn't be evaluating any packages, so we shouldn't need
`allowUnfree`.
2025-01-25 19:16:09 +00:00
Quentin Boyer
4751cb55f7 docs/user-guide: Add an entry for collisions with combinePlugins 2025-01-25 18:33:03 +01:00
Matt Sturgeon
1654f97a79
docs: use README as a source for the docs 2025-01-19 17:36:14 +00:00
Matt Sturgeon
85e4e16de8
docs: notify useGlobalPackages breaking change 2025-01-19 13:23:14 +00:00
Matt Sturgeon
e4484133d6
docs/user-guide: slightly simplify lib-overlay example 2025-01-17 13:13:40 +00:00
Matt Sturgeon
30842191e0
docs: enable warningsAreErrors 2025-01-17 03:56:59 +00:00
Matt Sturgeon
c19daee453
docs/user-guide: document nixvim's lib overlay 2025-01-17 02:23:10 +00:00
Matt Sturgeon
b28ebf2535
docs/user-guide: add sub-headings to helpers.md 2025-01-17 02:23:10 +00:00
Yohh
54e6dbd8c8 user-configs: add Yohh's configuration 2025-01-15 18:21:14 +01:00
Matt Sturgeon
60e88b870c
docs: treat internal options as invisible
`internal` options are intended to be implicitly not `visible`. This is
already handled correctly by the nixos tooling, but our custom tooling
did not correctly handle the edge case.

This lead to strange cases where an internal option is not included in
the docs, but its sub-options were still visible.
2024-12-27 20:34:23 +00:00
r6t
87b2679d6f user-configs: add @r6t config 2024-12-26 11:16:13 -08:00
Matt Sturgeon
4b3b67fb6f
lib: make overrideable & access via flake
Add a non-system specific `<flake>.lib.nixvim` output, which is
equivalent to the existing `<flake>.lib.<system>.helpers` output.

This is now also wrapped with `lib.makeOverridable` to allow overriding
the function args used to construct the nixvim-lib.

Consistently access nixvim-lib via the new flake output, overriding
where necessary.
2024-12-21 15:17:43 +00:00
Dylan Tompkins
6830c55d09
fix(docs): typo in install.md 2024-12-20 13:12:37 -08:00
Heitor Augusto
30895485c3 user-configs: add HeitorAugustoLN's configuration 2024-12-17 05:14:41 +00:00
Matt Sturgeon
a658e81d71
docs/config-examples: generate dynamically from a toml list
This should help to maintain uniformity and hopefully make contributions
easier.

Kept regression tests local to the derivation, however these are also
added to the flake checks.
2024-12-15 17:44:56 +00:00
Mykola Halkin
57464f22bb
config-examples: add NikolayGalkin 2024-12-14 22:34:29 +00:00
Austin Horstman
e8e396558b
docs/user-guide: add lazy-loading.md 2024-12-13 21:19:05 -06:00
Gaetan Lepage
a35f923d6a treewide: replace mentions of 24.05 with 24.11 2024-11-30 23:17:21 +01:00
Nick
6b9d55f936 Update docs/user-guide/config-examples.md
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2024-11-24 17:39:06 +00:00
Nick
99f377335d docs/user-guide/config-examples: add spector700's config 2024-11-24 17:39:06 +00:00
Matt Sturgeon
863d7d5ade
docs: link to all "available" versions of the docs 2024-11-22 09:13:11 +00:00
Simon Elsbrock
c7b7b6481b
docs: no longer using master but main
Tiny update. Noticed the `master` branch does not exist.
2024-11-20 21:44:01 +01:00
Matt Sturgeon
99b066ba6d
docs: only set base-href in CI built docs
This reverts commit c12e59ff7c
2024-11-18 19:54:38 +00:00
Matt Sturgeon
cdbda982f0
docs/search: refactor to use override 2024-11-18 17:53:47 +00:00
bpatel347
c892aa2073 docs/user-guide/config-examples: remove trailing whitespace 2024-11-11 20:26:53 +00:00
bpatel347
3415e10419 docs/user-guide/config-examples: add bkp5190 2024-11-11 20:26:53 +00:00
Matt Sturgeon
a92339d83b
docs: specify site-url
Fixes 404 page's relative links and styling being relative to `/`.
2024-11-11 18:51:14 +00:00
Matt Sturgeon
4726334e44
docs: move wrapper options to dedicated sub-pages 2024-10-24 18:32:39 +01:00
Matt Sturgeon
131e74e560
docs: move wrapper-options to summary index page 2024-10-24 18:32:15 +01:00
Matt Sturgeon
cd68b680cd
docs: rename modules -> platforms 2024-10-24 18:32:15 +01:00
Matt Sturgeon
c477b7865e
docs/mdbook: use a fileset union for source 2024-10-24 18:32:15 +01:00
Matt Sturgeon
c2dbf7acf1
docs/mdbook: clean up derivation 2024-10-24 18:32:13 +01:00
Matt Sturgeon
b076f006c6
wrappers: add meta.wrappers options to wrappers
Allows the docs to be a little less hard-coded.

Lays the groundwork for splitting up the platform-specific option docs
on a per-page basis.
2024-10-22 14:15:58 +01:00
Matt Sturgeon
c693500a72
docs: simplify mdbook.nixvimOptions impl 2024-10-22 12:31:56 +01:00
Matt Sturgeon
0562e519ec
docs: refactor wrapper-options docs 2024-10-21 18:36:00 +01:00
Matt Sturgeon
5992a22821
docs: introduce a dedicated homepage
Based of the README for now, with a small additional "welcome to the
docs" section.

Perhaps in future, we could re-use the README.md verbatim? Perhaps with
some additional post-processing.

I think we'd want to dramatically reduce its size first though.

By having a dedicated homepage outside of `user-guide`, this fixes #1625
2024-10-21 18:02:37 +01:00
Giovanni Nicosia (mood)
25b8d2ab20
Added kickstarter.nixvim stand-alone flake in the config-examples 2024-10-15 11:39:06 +02:00
Marcel
28485b0e57
options-search: configure title 2024-10-09 00:10:41 +02:00