Skip to content

Commit ec374e9

Browse files
Add root index.html so no need for crazy url for docs (#1871)
1 parent 1f1aa9c commit ec374e9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/root_index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv = "refresh" content = "0; url = web/html/doc/index.html" />
5+
</head>
6+
<body>
7+
</body>
8+
</html>

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,17 @@ jobs:
269269
cd ${{ github.workspace }}
270270
echo 'Generating Doxygen code documentation...'
271271
doxygen $DOXYFILE 2>&1 | tee doxygen.log
272-
echo 'Creating .nojekyll and copying log...'
273-
echo "" > doxygen/html/.nojekyll
274-
cp doxygen.log doxygen/html/doxygen.log
275272
# Required so Doxygen links/finds the license file
276273
cp LICENSE doxygen/html/LICENSE
277274
# Required in order to link .github/media/ images with doc without modifying doc links. Remove if using `publish_dir: doxygen/html/`
278275
mkdir -p doxygen_final/web/html/ && mv doxygen/html doxygen_final/web/html/doc
279276
mkdir -p doxygen_final/web/.github/media/ && cp -rf .github/media/ doxygen_final/web/.github/
280277
mkdir -p doxygen_final/web/html/.github/media/ && cp -rf .github/media/ doxygen_final/web/html/.github/
281278
mkdir -p doxygen_final/web/html/doc/.github/media/ && cp -rf .github/media/ doxygen_final/web/html/doc/.github/
279+
echo 'Copying log...'
280+
cp doxygen.log doxygen_final/doxygen.log
281+
echo 'Copying index.html to root pointing to actual docs'
282+
cp .github/root_index.html doxygen_final/index.html
282283
if: ${{ matrix.DOCS }}
283284
- name: Deploy Docs
284285
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)