Skip to content

Commit 103c03f

Browse files
committed
Add doc/index.html to redirect <homepage>/doc to the title page of the manual
This means that if a user requests https://digraphs.github.io/Digraphs/doc/ (which I think is a natural-enough thing to want to do), then instead of getting a 404 error, they are instead automatically redirected to the title page of the manual, which is presumably what they wanted, anyway. Unless and until gap-system/GitHubPagesForGAP#25 is merged, or gap-actions/update-gh-pages#10 is addressed in a way that lets us keeps this file purely in our gh-pages branch, then I think the best way to manage this file is to keep it in the repository here. Whenever the ReleaseTools script/release action is run, the doc/ directory of the gh-pages branch is deleted, and so if we only kept this file in the gh-pages branch, it would get deleted each time we make a new release. However, the doc/ directory of the gh-pages branch is re-populated with (amongst other things) the html files of the doc/ directory of this repository. In particular, by having this file in the doc/ directory of this repo, this means that the file is retained in the gh-pages branch, even across different releases of the package and runs of the ReleaseTools script/release action.
1 parent 317cf9a commit 103c03f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

doc/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html>
2+
<head>
3+
<meta http-equiv="refresh" content="0; url=chap0_mj.html" />
4+
<title>Digraphs package for GAP – The manual</title>
5+
</head>
6+
<body>
7+
<a href="chap0_mj.html">Click to access the title page of the manual.</a>
8+
</body>
9+
</html>

0 commit comments

Comments
 (0)