@@ -7,56 +7,53 @@ an open source course management, assignment submission, exam, and grading syste
77To report issues for this repository, please file them under the
88[ Submitty/Submitty] ( https://github.com/Submitty/Submitty ) repository.
99
10- ## Local Development
10+ ## Local Development with Docker (Recommended)
1111
12- ### Prerequisites
13-
14- To develop the site locally, you will need to get the following dependencies:
15-
16- * [ Ruby] ( https://www.ruby-lang.org/en/ )
17- * [ Bundler] ( https://bundler.io/ ) (` gem install bundler ` )
18-
19- For Bundler, depending on your system, you may need to also install the
20- Ruby development headers (e.g. ` ruby-dev ` ). On Ubuntu/Debian,
21- for example, this would be accomplished by doing ` sudo apt-get install ruby-dev ` .
22-
23-
24- ### Docker Setup (Recommended)
25-
26- If you have [ Docker] ( https://www.docker.com/ ) installed, you can skip
27- the Ruby/Bundler prerequisites entirely:
12+ If you have [ Docker] ( https://www.docker.com/ ) installed, you do not need to install Ruby or Bundler locally.
2813
29141 . Clone the repository:
3015 ``` bash
3116 git clone https://github.com/Submitty/submitty.github.io.git
3217 cd submitty.github.io
3318 ```
34- 2 . Start the development server :
19+ 2 . Start the development container :
3520 ``` bash
3621 docker compose up
3722 ```
38- The first run takes a few minutes to install dependencies. Subsequent
39- runs start in seconds.
23+ The first run will take a few minutes to install dependencies.
4024
41253 . Visit [ http://localhost:4000 ] ( http://localhost:4000 ) to view the site.
4226 Changes to files will automatically trigger a rebuild and refresh your
4327 browser.
4428
45- 4 . To stop the server , press ` Ctrl+C ` or run:
29+ 4 . To stop the development container , press ` Ctrl+C ` or run:
4630 ``` bash
4731 docker compose down
4832 ```
49- To run the link checker with Docker:
50- ``` bash
51- docker compose exec docs bundle exec jekyll build
52- docker compose exec docs bundle exec htmlproofer ./_site --assume-extension --empty-alt-ignore --disable_external
53- ```
54- If you prefer to set up Ruby natively, see the manual instructions below.
33+ ### Running the link checker
34+
35+ ``` bash
36+ docker compose exec site bundle exec jekyll build
37+ docker compose exec site bundle exec htmlproofer ./_site --assume-extension --empty-alt-ignore --disable_external
38+ ```
39+ Alternatively, you can develop the site with Ruby and Bundler installed locally. See the instructions below for more information.
40+
41+ ## Local Development with Ruby
42+
43+ ### Prerequisites
44+
45+ To develop the site locally, you will need to get the following dependencies:
46+
47+ * [ Ruby] ( https://www.ruby-lang.org/en/ )
48+ * [ Bundler] ( https://bundler.io/ ) (` gem install bundler ` )
5549
50+ For Bundler, depending on your system, you may need to also install the
51+ Ruby development headers (e.g. ` ruby-dev ` ). On Ubuntu/Debian,
52+ for example, this would be accomplished by doing ` sudo apt-get install ruby-dev ` .
5653
5754### Setup
5855
59- 1 . Clone the respository on your local machine, e.g.,
56+ 1 . Clone the repository on your local machine, e.g.,
6057
6158 ```
6259 git clone https://github.com/Submitty/submitty.github.io.git
@@ -163,11 +160,11 @@ above structure. Currently, the site only supports three levels of nesting (sub-
163160## Forked from [ Edition] ( https://github.com/CloudCannon/edition-jekyll-template )
164161
165162This repository was created via a fork of Edition, which is a product documentation theme for Jekyll created
166- by by [ CloudCannon] ( http://cloudcannon.com/ ) , the Cloud CMS for Jekyll.
163+ by [ CloudCannon] ( http://cloudcannon.com/ ) , the Cloud CMS for Jekyll.
167164
168165
169166
170167### Ruby Version Troubleshooting
171168
172169In February 2024:
173- * https://ritviknag.com/tech-tips/ruby-versioning-hell-with-jekyll-&-github-pages/
170+ * https://ritviknag.com/tech-tips/ruby-versioning-hell-with-jekyll-&-github-pages/
0 commit comments