Skip to content

Commit 956c330

Browse files
committed
remove references to old help; start on moving help into GSASII/newhelp
1 parent 2b33243 commit 956c330

File tree

5 files changed

+101
-86
lines changed

5 files changed

+101
-86
lines changed

.github/workflows/test_builddocsite.yml

Lines changed: 79 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
1414

1515
name: build GSAS-II web site w/test MD Help
1616

17-
#on: [workflow_dispatch]
18-
on: [push, workflow_dispatch]
17+
on:
18+
workflow_dispatch:
19+
20+
push:
21+
branches:
22+
- newhelp
1923

2024
permissions:
2125
contents: write
@@ -29,13 +33,14 @@ jobs:
2933

3034
- name: Python setup
3135
uses: actions/setup-python@v3
32-
- name: Sphinx setup
33-
run: |
34-
pip install sphinx sphinx_readable_theme
35-
- name: pandoc setup
36-
uses: pandoc/actions/setup@v1
36+
# Code below removed for more rapid testing
37+
# - name: Sphinx setup
38+
# run: |
39+
# pip install sphinx sphinx_readable_theme
40+
# - name: pandoc setup
41+
# uses: pandoc/actions/setup@v1
3742

38-
# MD help stuff
43+
# MD help tools
3944
- name: install debian chrome
4045
run: |
4146
set -ex
@@ -55,19 +60,18 @@ jobs:
5560
- name: Checkout
5661
uses: actions/checkout@v4
5762

58-
# MD help stuff
63+
# MD help conversion
5964
- name: convert MDhelp
6065
run: |
6166
cd MDhelp
6267
mkdocs build
63-
cp -vr site ../help_test
6468
ENABLE_PDF_EXPORT=1 mkdocs build
6569
mv site/GSASII-help.pdf ../docs/
6670
# create an anchor index
6771
python findMDanchors.py
68-
cp -vr site ../help_test
72+
cp -vr site ../help
6973
70-
# - name: Upload help artifact # creates zip file with website contents
74+
# - name: Upload help artifact # debug: creates zip file with website contents
7175
# uses: actions/upload-pages-artifact@v3
7276
# with:
7377
# path: MDhelp/site
@@ -78,33 +82,35 @@ jobs:
7882
run: |
7983
curl -L https://github.com/AdvancedPhotonSource/GSAS-II/raw/master/GSASII/tutorialIndex.py -o scripts/tutorialIndex.py
8084
81-
- name: convert tutorials
82-
run: |
83-
cd MDtutorials
84-
for path in ./*; do
85-
[ -d "${path}" ] || continue # skip if not a directory
86-
dirname="$(basename "${path}")"
87-
dest="../${dirname}"
88-
mkdir -pv ${dest}
89-
[ ! -d "${path}/data" ] || cp -r "${path}/data" ${dest}/
90-
[ ! -d "${path}/imgs" ] || cp -r "${path}/imgs" ${dest}/
91-
cp tutorial.css ${dest}
92-
for fil in $dirname/*.md; do
93-
outfile="${dest}/$(basename "${fil%.md}.html")"
94-
echo "creating $outfile from $fil"
95-
pandoc --standalone ${fil} --css tutorial.css -o ${outfile}
96-
sed -i "s/<figure>/<BR clear=all><figure>/g" ${outfile}
97-
done
98-
git add ${dest}
99-
done
100-
cd ..
85+
# Code below removed for more rapid testing
86+
# - name: convert tutorials
87+
# run: |
88+
# cd MDtutorials
89+
# for path in ./*; do
90+
# [ -d "${path}" ] || continue # skip if not a directory
91+
# dirname="$(basename "${path}")"
92+
# dest="../${dirname}"
93+
# mkdir -pv ${dest}
94+
# [ ! -d "${path}/data" ] || cp -r "${path}/data" ${dest}/
95+
# [ ! -d "${path}/imgs" ] || cp -r "${path}/imgs" ${dest}/
96+
# cp tutorial.css ${dest}
97+
# for fil in $dirname/*.md; do
98+
# outfile="${dest}/$(basename "${fil%.md}.html")"
99+
# echo "creating $outfile from $fil"
100+
# pandoc --standalone ${fil} --css tutorial.css -o ${outfile}
101+
# sed -i "s/<figure>/<BR clear=all><figure>/g" ${outfile}
102+
# done
103+
# git add ${dest}
104+
# done
105+
# cd ..
101106

102-
- name: build tutorials index
103-
run: |
104-
cd scripts
105-
python makeGitTutorial.py ..
107+
# Code below removed for more rapid testing
108+
# - name: build tutorials index
109+
# run: |
110+
# cd scripts
111+
# python makeGitTutorial.py ..
106112

107-
# - name: Note changed files
113+
# - name: Note changed files # unused development code
108114
# run: |
109115
# git add tutorials.html
110116
# git add */data/index.html
@@ -113,44 +119,49 @@ jobs:
113119
# - name: Push changes
114120
# uses: ad-m/github-push-action@master
115121

116-
- name: Sphinx build
117-
run: |
118-
sphinx-build webdocs . # place output into root dir
119-
cp webdocs/_static/fix.css _static/fix.css # should be done by sphinx
122+
# Code below removed for more rapid testing
123+
# - name: Sphinx build
124+
# run: |
125+
# sphinx-build webdocs . # place output into root dir
126+
# cp webdocs/_static/fix.css _static/fix.css # should be done by sphinx
120127

121-
# to be replaced by MD help stuff
122-
# get the help pages from the GSAS-II sources into the web site
128+
# get the new help pages into the GSAS-II sources
123129
- name: Get GSAS-II
124130
run: |
125131
git clone --depth 1 https://github.com/AdvancedPhotonSource/GSAS-II.git _gsas2
126132
- name: move help into site
127133
run: |
128-
mv _gsas2/GSASII/help ./help
134+
cp -rpv MDhelp/site _gsas2/GSASII/help
135+
cd _gsas2
136+
git status
137+
138+
# before uploading, clean up
129139
- name: Get rid of the rest of the GSAS-II files & other stuff not needed on web
130140
run: |
131141
rm -rf _gsas2 webdocs scripts MDtutorials MDhelp
132-
133-
- name: Upload artifact # creates zip file with website contents
134-
uses: actions/upload-pages-artifact@v3
135-
with:
136-
path: .
137-
name: github-pages
138-
retention-days: 1
139-
140-
deploy: # Deployment of web pages to GitHub pages
141-
needs: build
142-
permissions:
143-
pages: write
144-
id-token: write
145-
environment:
146-
name: github-pages
147-
url: ${{ steps.deployment.outputs.page_url }}
148-
runs-on: ubuntu-latest
142+
143+
# Code below removed for more rapid testing
144+
# - name: Upload artifact # creates zip file with website contents
145+
# uses: actions/upload-pages-artifact@v3
146+
# with:
147+
# path: .
148+
# name: github-pages
149+
# retention-days: 1
150+
151+
# deploy: # Deployment of web pages to GitHub pages
152+
# needs: build
153+
# permissions:
154+
# pages: write
155+
# id-token: write
156+
# environment:
157+
# name: github-pages
158+
# url: ${{ steps.deployment.outputs.page_url }}
159+
# runs-on: ubuntu-latest
149160

150-
steps:
151-
- name: Deploy to GitHub Pages
152-
id: deployment
153-
uses: actions/deploy-pages@v4
154-
with:
155-
token: ${{ secrets.GITHUB_TOKEN }}
156-
artifact_name: github-pages
161+
# steps:
162+
# - name: Deploy to GitHub Pages
163+
# id: deployment
164+
# uses: actions/deploy-pages@v4
165+
# with:
166+
# token: ${{ secrets.GITHUB_TOKEN }}
167+
# artifact_name: github-pages

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ This repository contains files used to create GSAS-II web content, which include
88

99
* **Tutorials**: When the tutorials will be run, It is best to access them from within GSAS-II using the Help->Tutorials menu (this will simplifies downloading the files needed to run the tutorials), but tutorials can also be accessed [from this link](https://advancedphotonsource.github.io/GSAS-II-tutorials/tutorials.html). The HTML, images and data files for the tutorials are found in this repo. Note that when new functionality is added to GSAS-II, it is customary to create a new tutorial.
1010

11-
* **Help Pages**: There are three HTML web pages used within GSAS-II (plus a table of contents page) for context-sensitive help. These files are maintained in the [GSAS-II source code repo](https://github.com/AdvancedPhotonSource/GSAS-II/tree/master/GSASII/help), but for convenience, [they can also be accessed from the web pages](https://advancedphotonsource.github.io/GSAS-II-tutorials/help/gsasII-index.html).
11+
* **Help Pages**: There are a set of web files that are
12+
distributed with GSAS-II, or can be [viewed here](help/index.html). These
13+
help pages provide information on how different sections of the program
14+
work. The help information can also be viewed [as a PDF document](https://advancedphotonsource.github.io/GSAS-II-tutorials/docs/GSASII-help.pdf).
15+
Comments, corrections, additions and issue reports on Help are most welcome.
1216

1317
## Repo Organization
1418
Each tutorial is placed here in its own subdirectory. In that subdirectory, there will be a web page for that tutorial (extension .html or .htm) and two additional subdirectories, one named `data`, with the input file(s) needed for that tutorial and another with a name generated from the web page file name that contains images for the web page.

fullrmc-SF6/fullrmc-SF6.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ <h2><a name=install>Installing fullrmc</a></h2>
16151615
mso-bidi-theme-font:major-bidi'>When fullrmc is selected on the Phase RMC tab
16161616
(as will be done below), GSAS-II will look for a fullrmc program in a number of
16171617
locations (<a
1618-
href="https://subversion.xray.aps.anl.gov/pyGSAS/trunk/help/gsasII-phase.html#Phase-RMC">documented
1618+
href="https://advancedphotonsource.github.io/GSAS-II-tutorials/help/phaseRMC.html#fullrmc">documented
16191619
here</a>). If this is not found, the program will offer to install it for you,
16201620
as below.<o:p></o:p></span></p>
16211621

@@ -1720,9 +1720,9 @@ <h2><a name=install>Installing fullrmc</a></h2>
17201720
href="https://github.com/bachiraoun/fullrmc/tree/master/standalones">https://github.com/bachiraoun/fullrmc/tree/master/standalones</a>.
17211721
If this is done manually, either install it into the search path described in
17221722
the <a
1723-
href="https://subversion.xray.aps.anl.gov/pyGSAS/trunk/help/gsasII-phase.html#Phase-RMC">GSAS-II
1723+
href="https://advancedphotonsource.github.io/GSAS-II-tutorials/help/phaseRMC.html#fullrmc">GSAS-II
17241724
help</a> or define the GSAS-II <a
1725-
href="https://subversion.xray.aps.anl.gov/pyGSAS/trunk/help/gsasII-phase.html#Preferences">configuration
1725+
href="https://advancedphotonsource.github.io/GSAS-II-tutorials/help/others.html#Preferences">configuration
17261726
variable</a> </span><span class=SpellE><tt><span style='mso-ansi-font-size:
17271727
16.0pt;mso-bidi-font-size:16.0pt;font-family:"Times New Roman",serif;
17281728
mso-ascii-theme-font:major-bidi;mso-fareast-font-family:"Times New Roman";

webdocs/compile.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,13 @@ Compiling with Scons
388388
Compilation with scons (as opposed to meson, as discussed above) is not
389389
recommended and will be removed from GSAS-II in the future. It will
390390
work only with Python 3.11 or older and only with the ``master``
391-
branch. Do not use GSAS-II will fail with Python earlier than 3.7 and may have
392-
some errors even with Python 3.8.
391+
branch. Note that GSAS-II will fail with Python earlier than 3.7 and may have
392+
some errors even with Python 3.8-3.10 as it is no longer tested on
393+
those environments.
393394

394395
The compilation process requires installation of the gcc and GFortran
395396
compilers. Others will probablu not work. Also, the Python Scons
396-
package must be installed into Python. compilation is done with
397+
package must be installed into Python. Compilation is then done with
397398
commands::
398399

399400
cd fsource
@@ -408,7 +409,8 @@ Installation of compilers is highly depend on the computer system being used, bu
408409
Use the ``conda search gfortran`` command to find the name for the package.
409410
On most linux systems, one can use a command such as ``sudo apt-get gfortran`` or ``yum install gcc-gfortran``. Also see https://gcc.gnu.org/wiki/GFortranBinaries for more information.
410411

411-
Note that the intent is that this Scons-based process will be replaced with one to run under meson in mid-2024. In the meantime, some older web pages discussing compiling GSAS-II may be of use:
412+
Note that the intent is that this Scons-based process is no longer in
413+
use, but for reference some older web pages discussing compiling GSAS-II may be of use:
412414

413415
* https://subversion.xray.aps.anl.gov/trac/pyGSAS/wiki/CompilingWindows
414416
* https://subversion.xray.aps.anl.gov/trac/pyGSAS/wiki/InstallMacHardWay#CompilingFortranCode

webdocs/documentation.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,17 @@ Some older tutorials have video copies, so you can see the computer screen as th
2323
Help pages
2424
-----------------------
2525

26-
The GSAS-II GUI provides context-based help via several web files that are
26+
The GSAS-II GUI provides context-based help via web files that are
2727
distributed with the program, as well as can be `viewed here
28-
<help/gsasII-index.html>`_. These help pages are not always complete,
28+
<help/index.html>`_. These help pages are not always complete,
2929
but do provide information on how different sections of the program
30-
work.
31-
32-
The help documentation is in the process of being reformatted and updated. The
33-
`new help pages can be viewed here<help-test/>`_ as web pages or
34-
`here as a PDF document
30+
work. The help information can also be viewed `as a PDF document
3531
<https://advancedphotonsource.github.io/GSAS-II-tutorials/docs/GSASII-help.pdf>`_.
36-
These files are now based in MarkDown (simple text) input files found
37-
`in GitHub<https://github.com/AdvancedPhotonSource/GSAS-II-tutorials/tree/main/MDhelp>`_.
38-
Comments, corrections, additions and issue reports are most welcome.
32+
33+
Note that the help documentation was recently reformatted and updated
34+
as MarkDown (simple text) input files found
35+
`here in GitHub<https://github.com/AdvancedPhotonSource/GSAS-II-tutorials/tree/main/MDhelp>`_.
36+
Comments, corrections, additions and issue reports on Help are most welcome.
3937

4038
.. index:: Source code documentation
4139

0 commit comments

Comments
 (0)