Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

sphinx-build.yml 1.4 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  1. name: "Doc Builder"
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. docs:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v1
  11. - name: Setup Python
  12. uses: actions/setup-python@v1
  13. with:
  14. python-version: '3.6'
  15. architecture: 'x64'
  16. - uses: ammaraskar/sphinx-action@master
  17. with:
  18. docs-folder: "docs/"
  19. pre-build-command: "apt-get update -y && apt-get install -y plantuml latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended pandoc"
  20. - uses: actions/upload-artifact@v1
  21. with:
  22. name: DocumentationHTML
  23. path: docs/_build/html/
  24. - name: Commit documentation changes
  25. run: |
  26. git clone https://github.com/thomastu/CaReCur.git --branch gh-pages --single-branch gh-pages
  27. cp -r docs/_build/html/* gh-pages/
  28. # HACK: send altair data
  29. cp notebooks/*json gh-pages/notebooks/
  30. cd gh-pages
  31. touch .nojekyll
  32. git config --local user.email "thomasthetu@gmail.com"
  33. git config --local user.name "Thomas Tu"
  34. git add .
  35. git commit -m "Update documentation" -a || true
  36. # The above command will fail if no changes were present, so we ignore
  37. # that.
  38. - name: Push changes
  39. uses: ad-m/github-push-action@master
  40. with:
  41. branch: gh-pages
  42. directory: gh-pages
  43. github_token: ${{ secrets.GITHUB_TOKEN }}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...