mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-08-01 12:13:22 +00:00
docs: improvements to building and docs (#5234)
This commit is contained in:
parent
5a07291306
commit
2d1a82b73f
28 changed files with 122 additions and 170 deletions
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Initial setup
|
||||
cp /tmp/README.md /build/docs/index.md
|
||||
sed -i 's|site/docs/||g' /build/docs/index.md
|
||||
|
||||
# Start mkdocs in the background
|
||||
mkdocs serve -a 0.0.0.0:8000 --dirtyreload &
|
||||
|
||||
# Watch for changes in README.md
|
||||
while true; do
|
||||
inotifywait -e modify /tmp/README.md
|
||||
echo "README.md changed. Updating index.md..."
|
||||
cp /tmp/README.md /build/docs/index.md
|
||||
sed -i 's|site/docs/||g' /build/docs/index.md
|
||||
done
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue