Skip to content

Commit 80db2b6

Browse files
authored
Merge pull request #194 from qutip/feature/instructions-to-build-locally
Add instructions to build locally and exclude non-site files from the build.
2 parents d4f4d1d + 2f3639f commit 80db2b6

File tree

12 files changed

+31
-2
lines changed

12 files changed

+31
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store/
22
_site/
3+
Gemfile.lock

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "github-pages", "~> 231", group: :jekyll_plugins
4+
gem "webrick", "~> 1.8"

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
Repository for QuTiP web pages
2-
-------------------------------------------
2+
------------------------------
33

4-
[https://qutip.org](https://qutip.org)
4+
This repository contains the Jekyll source documents for building the
5+
QuTiP and family packages website at [https://qutip.org](https://qutip.org).
6+
7+
Testing locally
8+
---------------
9+
10+
Complete instructions for testing changes locally can be found in the
11+
[GitHub documentation](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll).
12+
13+
The short version of the instructions is:
14+
15+
- Install Ruby and Bundler usings the appropriate tools for your platform.
16+
- Run `bundle install` which installs the dependencies listed in the `Gemfile`.
17+
- Run `bundle exec jekyll serve` which will build the site and serve it locally.
18+
19+
Deploying changes
20+
-----------------
21+
22+
Push changes to master triggers the default GitHub pages build action which
23+
runs Jekyll and deployes the updated website.
524

_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
exclude:
2+
- "build-scripts/"
3+
- "CNAME"
4+
- "Gemfile"
5+
- "README.md"
File renamed without changes.

0 commit comments

Comments
 (0)