docs: rename modules -> platforms

This commit is contained in:
Matt Sturgeon 2024-10-23 14:10:31 +01:00
parent c477b7865e
commit cd68b680cd
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
8 changed files with 10 additions and 10 deletions

View file

@ -11,8 +11,8 @@
# Platforms
- [Platform-specific options](./modules/wrapper-options.md)
- [Standalone Usage](./modules/standalone.md)
- [Platform-specific options](./platforms/wrapper-options.md)
- [Standalone Usage](./platforms/standalone.md)
# Options

View file

@ -228,7 +228,7 @@ let
wrapperOptionFiles = lib.mapAttrs' (name: options: {
name = options.meta.wrapper.name.value;
# TODO:
# value.path = "./modules/${name}.md";
# value.path = "./platforms/${name}.md";
value.file = mkMDDoc options;
}) wrapperOptions;
@ -298,7 +298,7 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
root = ../../.;
fileset = lib.fileset.unions [
../user-guide
../modules
../platforms
../../CONTRIBUTING.md
(lib.fileset.fileFilter (
{ type, hasExt, ... }:
@ -328,7 +328,7 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
substituteInPlace ./SUMMARY.md \
--replace-fail "@NIXVIM_OPTIONS@" "$nixvimOptionsSummary"
substituteInPlace ./modules/wrapper-options.md \
substituteInPlace ./platforms/wrapper-options.md \
--replace-fail "@WRAPPER_OPTIONS@" "$(cat ${finalAttrs.passthru.wrapperOptionDocs})"
mdbook build