Skip to content

Commit 98e105e

Browse files
authored
fix: landing page action (#816)
1 parent 0935b5c commit 98e105e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/update-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
sed -i 's/src="\([^:"]*\)"/src="version\/dev\/\1"/g' index.html
5050
# Update JS variables pointing to static values
5151
sed -i 's|const SEARCH_FILE = ".*_static/search.json";|const SEARCH_FILE = "version/dev/_static/search.json";|g' index.html
52-
sed -i 's|const PROJECTS_FILE = ".*_static/projects.json";|const PROJECTS_FILE = "version/dev/_static/projects.json";|g' index.html
52+
sed -i 's|const PROJECTS_FILE = "_static/projects.json"|const PROJECTS_FILE = "version/dev/_static/projects.json"|' index.html
5353
# Replace "version/stable" with "version/dev" in the sitemap.xml
5454
sed -i 's/version\/stable/version\/dev/g' sitemap.xml
5555

doc/source/_templates/landing_page_sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
</div>
2020

2121
<script>
22-
const PROJECTS_FILE = "{{ pathto('_static/projects.json', 1) }}"
22+
const PROJECTS_FILE = "{{ pathto('_static/projects.json', 1) }}";
2323
</script>
2424
<script src="{{ pathto('_static/js/landing_page.js', 1) }}"></script>

0 commit comments

Comments
 (0)