11# create a documentation web site for GSAS-II from four sources
22# * HTML tutorials are simply copied
33# * markdown tutorials (in ./MDtutorials) are formatted with pandoc and are copied over
4- # * HTML help files are copied over from the GSAS-II sources
54# * sphinx is used to generate HTML from files in ./webdocs
65
76# Also the tutorials.html file and the */data/index.html files are
87# created by running scripts/makeGitTutorial
98
109# this is a development version that creates draft help pages from the MDhelp directory
10+ For now
11+ # * HTML help files are copied over from the GSAS-II sources
1112
12- name : test MD help w/ build GSAS-II web site
13+ name : build GSAS-II web site w/test MD Help
1314
14- on : [workflow_dispatch]
15- # on: [push, workflow_dispatch]
15+ # on: [workflow_dispatch]
16+ on : [push, workflow_dispatch]
1617
1718permissions :
1819 contents : write
@@ -29,21 +30,45 @@ jobs:
2930 - name : Sphinx setup
3031 run : |
3132 pip install sphinx sphinx_readable_theme
32- #pip install mkdocs-to-pdf
3333 - name : pandoc setup
3434 uses : pandoc/actions/setup@v1
35+
36+ # MD help stuff
37+ - name : install debian chrome
38+ run : |
39+ set -ex
40+ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
41+ sudo apt install ./google-chrome-stable_current_amd64.deb
42+
43+ # - name: test newly-installed chrome
44+ # run: |
45+ # which google-chrome-stable
46+ # google-chrome-stable --version
47+ # /usr/bin/google-chrome-stable --headless --disable-gpu --dump-dom https://google.com
3548 - name : mkdocs setup
3649 run : |
3750 pip install mkdocs mkdocs-material python-markdown-math mkdocs-static-i18n
51+ pip install mkdocs-to-pdf pymdown-extensions
3852
3953 - name : Checkout
4054 uses : actions/checkout@v4
4155
56+ # MD help stuff
4257 - name : convert MDhelp
4358 run : |
4459 cd MDhelp
4560 mkdocs build
4661 cp -vr site ../help_test
62+ ENABLE_PDF_EXPORT=1 mkdocs build
63+ mv site/GSASII-help.pdf ../docs/
64+ cp -vr site ../help_test
65+
66+ # - name: Upload help artifact # creates zip file with website contents
67+ # uses: actions/upload-pages-artifact@v3
68+ # with:
69+ # path: MDhelp/site
70+ # name: MDhelp
71+ # retention-days: 1
4772
4873 - name : Get tutorials index from source code
4974 run : |
89114 sphinx-build webdocs . # place output into root dir
90115 cp webdocs/_static/fix.css _static/fix.css # should be done by sphinx
91116
117+ # to be replaced by MD help stuff
92118 # get the help pages from the GSAS-II sources into the web site
93119 - name : Get GSAS-II
94120 run : |
0 commit comments