Skip to content

Commit

Permalink
fixing docs so that GH pages picks up the right CNAME for DNS (#135)
Browse files Browse the repository at this point in the history
* fixing docs so that GH pages picks up the right CNAME for DNS

* updating workflow to pick CNAME

* making sure to correctly set permissions on the build/html directory

* fixing GH actions issues with CNAME

* updated docker build command to run as local user

* fixed the CNAME issue and udpated GH actions

---------

Co-authored-by: Salman Paracha <[email protected]>
  • Loading branch information
salmanap and Salman Paracha authored Oct 7, 2024
1 parent 96686dc commit 976b2ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
chmod +x build_docs.sh
./build_docs.sh
- name: Copy CNAME to HTML Build Directory
run: cp docs/CNAME docs/build/html/CNAME

# Deploy the docs to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
2 changes: 1 addition & 1 deletion docs/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
archgw.com
docs.archgw.com
4 changes: 3 additions & 1 deletion docs/build_docs.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
docker build -f Dockerfile . -t sphinx
docker run --rm -v $(pwd):/docs sphinx make html
docker run --user $(id -u):$(id -g) --rm -v $(pwd):/docs sphinx make clean
docker run --user $(id -u):$(id -g) --rm -v $(pwd):/docs sphinx make html
chmod -R 777 build/html

0 comments on commit 976b2ea

Please sign in to comment.