-
Notifications
You must be signed in to change notification settings - Fork 8
/
README-docs
44 lines (30 loc) · 1.37 KB
/
README-docs
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
The pyast html docs are hosted on github project pages
(https://help.github.com/articles/creating-project-pages-manually/)
associated with the main pyast repo. The main page is published at
http://starlink.github.io/starlink-pyast/pyast.html
The associated files are stored on the "gh-pages" branch of the main
repository.
The files pyast.html, node1.html and node2.html are generated by running
script "make_doc" and should not therefore be changed manually. The
make_doc script needs to be told the paths to a local copy of sun211.tex
(the C docs) and Ast.c (the main python wrapper file). make_doc copies
the contents of "dochead.html" and "doctail.html" to the beginning and
end of pyast.html. So any changes made to "dochead.html or doctail.html
will appear in pyast.html.
The other html files are static and can be changed manually.
make_doc should be run whenever:
- New functions are added to sun/211
- New wrappers are added to Ast.c
- API for existing wrappers in Ast.c are changed
- dochead.html or doctail.html are changed.
% make_doc <path/to/sun211.tex> <path/to/Ast.c>
A typical scenario is:
% cd starlink-pyast
<add a new wrapper to Ast.c or make some other change>
% git commit -a -m "Added wrapper for astFred"
% cp starlink/ast/Ast.c ./
% git checkout gh-pages
% make_doc
% git commit -a -m "Added wrapper for astFred"
% git push origin gh-pages
% git checkout master