Skip to content

Commit 03c1d5b

Browse files
authored
fix _static files location (#2081)
* fix _static files location * try with one level up * include --base in link checker for local paths * revert just to see if the link checker detects the 404 * apply fix
1 parent 969e509 commit 03c1d5b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.ci_scripts/update_docs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ popd
2222
# Move rendered Sphinx markdown to Docusaurus
2323
python "$BASE_DIR/.ci_scripts/sphinx_markdown_to_docusaurus.py" "$BASE_DIR/sphinx/src/_build/markdown" docs/
2424
mkdir -p "$BASE_DIR/static-sphinx/_static"
25-
cp -r "$BASE_DIR/sphinx/src/_static/" "$BASE_DIR/static-sphinx/_static/"
25+
cp -r "$BASE_DIR/sphinx/src/_static" "$BASE_DIR/static-sphinx/"
2626
# Build docusaurus site
2727
npm install
2828
npm run build
2929

3030
# Serve the announcements RSS feed in this old location too
3131
# we can't redirect with the Docusaurus plugin, so just copy it
3232
cp build/news/rss.xml build/docs/news.rss
33+
34+
echo "Built website! Preview at http://localhost:8000 with:"
35+
echo " python -m http.server -d build/"

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
lycheeVersion: '0.14.3'
5050
args: >
5151
--no-progress
52+
--base "$(pwd)/build"
5253
--exclude 'https://polys.me/?$'
5354
--exclude 'https://kb43fqob7u-dsn.algolia.net/'
5455
--exclude '.*/404.html/'

0 commit comments

Comments
 (0)