Skip to content

Commit a0d9565

Browse files
manual docs publishing
1 parent 4de4ea9 commit a0d9565

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
*.jl.mem
55
*.swp
66
docs/build
7+
docs/gh-pages

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ After switching to package manager prompt (using ']') type:
3232

3333
## Documentation (more to come)
3434

35-
For now it is just [REFERENCE guide](REFERENCE.md).
35+
For now it is just [REFERENCE guide](https://slimgroup.github.io/JOLI.jl).
3636

3737
## Examples (more to come)
3838

Diff for: docs/runmake

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
22
set -x
33

4-
rm -rvf build
4+
rm -rf build
55
julia make.jl || exit 1
6-
#test -e build/index.md || exit 1
7-
#mv -fv build/index.md ../REFERENCE.md
8-
#perl -pi -e 's/index\.md/REFERENCE.md/g' ../REFERENCE.md
6+
test -e build/index.html || exit 1
7+
open build/index.html

Diff for: docs/runpublish

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -x
3+
4+
rm -rf gh-pages
5+
test -e build/index.html || exit 1
6+
git clone --quiet --branch gh-pages --single-branch [email protected]:slimgroup/JOLI.jl.git gh-pages || exit 1
7+
cd gh-pages || exit 1
8+
git checkout gh-pages || exit 1
9+
rsync -avH ../build/ ./ || exit 1
10+
git add --all || exit 1
11+
git commit -m "Docs on $(date)" || exit 1
12+
git push

0 commit comments

Comments
 (0)