Skip to content

Commit 99b4862

Browse files
committed
ci: final fix for relative links and web pages?
1 parent 037d589 commit 99b4862

File tree

11 files changed

+11
-6
lines changed

11 files changed

+11
-6
lines changed

.github/workflows/docs.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,22 @@ jobs:
4040
run: |
4141
.github/workflows/docs.sh
4242
43-
- name: Add main page
44-
run: cp .github/workflows/index.html target/doc/index.html
45-
4643
- name: Remove lock file
4744
run: rm target/doc/.lock
4845

46+
- name: Add redirect
47+
run: echo '<meta http-equiv="refresh" content="0;url=googol/index.html">' > target/doc/index.html
48+
49+
- name: Copy Web Pages
50+
run: cp --recursive static target/web
51+
52+
- name: Add main page
53+
run: cp .github/workflows/index.html target/index.html
54+
4955
- name: Upload artifact
5056
uses: actions/upload-pages-artifact@v3
5157
with:
52-
path: target/doc
58+
path: target
5359

5460
deploy:
5561
name: Deploy

.github/workflows/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<!-- <meta http-equiv="refresh" content="0;url=googol/index.html"> -->
76
<title>Googol Pages</title>
87
<style>
98
body {
@@ -36,7 +35,7 @@
3635

3736
<h1>Googol</h1>
3837
<a href="web">Web Page</a>
39-
<a href="googol">Docs</a>
38+
<a href="doc">Docs</a>
4039

4140
</body>
4241
</html>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)