-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DX!: build documentation on GitLab pages (#156)
* DOC: fix LaTeX rendering in `README.md` * DX: automatically push to GitLab from main branch
- Loading branch information
Showing
5 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Push to GitLab | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
push: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Push main branch to GitLab | ||
run: | | ||
git remote add gitlab "https://oauth2:${token}@gitlab.cern.ch/polarimetry/Lc2pKpi.git" | ||
git push gitlab main | ||
env: | ||
token: ${{ secrets.GITLAB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
image: python:3.8 | ||
|
||
pages: | ||
only: | ||
- main | ||
before_script: | ||
- apt-get update | ||
- apt-get install -y cm-super dvipng texlive-latex-extra | ||
- python3 -m pip install .[doc] | ||
- wget -q https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.3-linux-x86_64.tar.gz | ||
- tar xzf julia-1.7.3-linux-x86_64.tar.gz | ||
- mv julia-1.7.3 /opt/ | ||
- ln -s /opt/julia-1.7.3/bin/julia /usr/local/bin/julia | ||
- julia --project=./julia -e 'import Pkg; Pkg.instantiate()' | ||
script: | ||
- sphinx-build -nW --color --keep-going -b html docs/ public | ||
variables: | ||
EXECUTE_NB: "YES" | ||
EXECUTE_PLUTO: "YES" | ||
artifacts: | ||
paths: | ||
- public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters