Skip to content

Commit dbf125d

Browse files
authored
Fix menu and push docs using github action (#337)
1 parent 55e45da commit dbf125d

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

.github/workflows/ci-build.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ name: Documentation Build
44
on: [push, pull_request, workflow_dispatch]
55

66
jobs:
7-
# This workflow contains a single job called "build"
8-
build:
7+
docs_build:
98
runs-on: ubuntu-20.04
109

1110
env:
@@ -62,21 +61,11 @@ jobs:
6261
path: docs/build/html
6362
retention-days: 7
6463

65-
- name: Deploy Documentation
64+
- name: Deploy
65+
uses: JamesIves/[email protected]
6666
if: startsWith(github.ref, 'refs/tags/')
67-
run: |
68-
git clone --no-checkout --depth 1 https://[email protected]/pyansys/pymapdl.git /tmp/gh_pages
69-
cd /tmp/gh_pages
70-
git checkout --orphan gh-pages
71-
rm -rf *
72-
git config user.name $GH_USERNAME
73-
git config user.email $GH_EMAIL
74-
cp -r $GITHUB_WORKSPACE/docs/build/html/* .
75-
touch .nojekyll
76-
git add .
77-
git commit -am "CI: Updated site via $GITHUB_SHA"
78-
git push -u origin gh-pages -f
79-
env:
80-
GH_USERNAME: ${{ secrets.GH_USERNAME }}
81-
GH_PAT: ${{ secrets.REPO_DOWNLOAD_PAT }}
82-
GH_EMAIL: ${{ secrets.GH_EMAIL }}
67+
with:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
BRANCH: gh-pages
70+
FOLDER: docs/build/html
71+
CLEAN: true

docs/source/_static/css/ansys.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ h1, h2, h3, h4, h5, h6 {
1414
font-family: 'Source Sans Pro', sans-serif;
1515
}
1616

17+
.navbar-toggler-icon {
18+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
19+
}
1720

1821
.sig-prename {
1922
color: var(--ansysBronze);

0 commit comments

Comments
 (0)