mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
doc: Use correct href for nuscht-search
This commit also adds a subdirectory in the docs derivation, to have the same local structure than what is uploaded on github pages.
This commit is contained in:
parent
ac50052a49
commit
c12e59ff7c
4 changed files with 5 additions and 5 deletions
4
.github/workflows/build_documentation.yml
vendored
4
.github/workflows/build_documentation.yml
vendored
|
@ -44,9 +44,9 @@ jobs:
|
||||||
set -ex
|
set -ex
|
||||||
mkdir -p docs-build
|
mkdir -p docs-build
|
||||||
nix build github:nix-community/nixvim#docs
|
nix build github:nix-community/nixvim#docs
|
||||||
cp -r result/share/doc/* docs-build
|
cp -r result/share/doc/nixvim/* docs-build
|
||||||
nix build github:nix-community/nixvim/nixos-24.05#docs
|
nix build github:nix-community/nixvim/nixos-24.05#docs
|
||||||
cp -r result/share/doc docs-build/stable
|
cp -r result/share/doc/nixvim docs-build/stable
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|
|
@ -119,7 +119,7 @@ in
|
||||||
transformOptions
|
transformOptions
|
||||||
;
|
;
|
||||||
# TODO: Find how to handle stable when 24.11 lands
|
# TODO: Find how to handle stable when 24.11 lands
|
||||||
search = mkSearch "/search/";
|
search = mkSearch "/nixvim/search/";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -264,7 +264,7 @@ pkgs.stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
dest=$out/share/doc
|
dest=$out/share/doc/nixvim
|
||||||
mkdir -p $dest
|
mkdir -p $dest
|
||||||
${prepareMD}
|
${prepareMD}
|
||||||
mdbook build
|
mdbook build
|
||||||
|
|
|
@ -12,5 +12,5 @@ class UncachedHTTPHandler(http.server.SimpleHTTPRequestHandler):
|
||||||
|
|
||||||
|
|
||||||
with http.server.HTTPServer(("", PORT), UncachedHTTPHandler) as httpd:
|
with http.server.HTTPServer(("", PORT), UncachedHTTPHandler) as httpd:
|
||||||
print(f"Serving documentation at http://localhost:{PORT}")
|
print(f"Serving documentation at http://localhost:{PORT}/nixvim")
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue