Skip to content

Commit b343147

Browse files
authored
Merge pull request #351 from ExaWorks/more_ghpages_fixes
More ghpages fixes
2 parents 46fa218 + 8551cbc commit b343147

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

README-dev.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Make sure that `build.sh` is called from the main directory. The output will
4848
be in `web-build`.
4949

5050
3. Render the web site and themed documentation, which can be done using Jekyll.
51-
To install Jekyll, follow these
52-
[instructions](https://jekyllrb.com/docs/installation/). Then run
51+
To install Jekyll, follow the instructions in step 2 of
52+
[web/README.md](web/README.md). You only need to do this once. Then run
5353

5454
```
5555
web/serve.sh

web/Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ source "https://rubygems.org"
77
#
88
# This will help ensure the proper Jekyll version is running.
99
# Happy Jekylling!
10-
gem "jekyll", "~> 4.3.1"
10+
11+
#gem "jekyll", "~> 4.3.1"
12+
gem "github-pages", "~> 228", group: :jekyll_plugins
13+
1114
# This is the default theme for new Jekyll sites. You may change this to anything you like.
1215
gem "minima", "~> 2.5"
1316
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and

web/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@ PSI/J repository.
2222
$ sudo pip install -r requirements-docs.txt
2323
```
2424

25-
2. Install Jekyll (see [Jekyll Installation](https://jekyllrb.com/docs/installation/) - also a one-time operation).
25+
2. Install Jekyll prerequisites by following the instructions for your
26+
operating system found in the
27+
[Jekyll installation instructions](https://jekyllrb.com/docs/installation/).
28+
You should skip installing Jekyll itself, since it will be installed by
29+
*bundler*. Then run
30+
```bash
31+
$ cd web
32+
$ bundle update
33+
$ cd ..
34+
```
35+
to install the version of Jekyll used by github-pages. This is a one-time
36+
operation. For subsequent builds, you can skip directly to step 3.
2637

2738
3. Run the build script, which will build the documentation, process
2839
files in the `web` directory, and generate the output in `web-build`:

web/_config.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,15 @@ plugins:
5353
# - vendor/gems/
5454
# - vendor/ruby/
5555

56+
exclude:
57+
- Gemfile
58+
- Gemfile.lock
59+
- .gitignore
60+
- README.md
5661
include:
57-
- "**"
62+
- _static
63+
- _images
64+
- _sources
65+
- _modules
66+
- .generated
67+
- .doctrees

0 commit comments

Comments
 (0)