Skip to content

Commit 1fe1f75

Browse files
authored
Merge pull request #2 from tlaurion/local_jekyll-linuxboot_changes
Development/Contributing-to-Heads-Wiki.md: replace osresearch->linuxboot, add local_config.yml for local jekyll changes tests, change instructions.
2 parents b4b8cb4 + 55e7376 commit 1fe1f75

File tree

3 files changed

+29
-16
lines changed

3 files changed

+29
-16
lines changed

Development/Contributing-to-Heads-Wiki.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The simplest way to make a small change to existing pages is directly on GitHub
3434
as it requires no software to be installed.
3535

3636
* Start by login into GitHub and forking
37-
[osresearch/heads-wiki](https://github.com/osresearch/heads-wiki).
37+
[linuxboot/heads-wiki](https://github.com/linuxboot/heads-wiki).
3838
* Find the desired page on [osresearch.net](http://osresearch.net/). Click on
3939
the link at the bottom of the page saying *"Edit this page on GitHub."*
4040
* This will bring you to an editor on GitHub and should mention that you do not
@@ -68,25 +68,17 @@ Additionally, the theme will also need to be installed as the remote theme does
6868

6969
After installing Jekyll and the Just the Docs theme you may run the wiki on your local system for faster testing and development.
7070
* log in to GitHub and fork
71-
[osresearch/heads-wiki](https://github.com/osresearch/heads-wiki). Then clone
71+
[linuxboot/heads-wiki](https://github.com/linuxboot/heads-wiki). Then clone
7272
your fork locally.
73-
* Navigate to the base of the locally cloned repo and alter `_config.yml` to use
74-
the local theme. The simplest way is to comment out the line that beings
75-
`remote_theme` and add a line `theme: "just-the-docs"`
76-
77-
```yaml
78-
# remote_theme: pmarsceill/just-the-docs
79-
theme: "just-the-docs"
80-
```
8173
* Now start Jekyll with:
8274
```bash
83-
$> jekyll serve
75+
$> jekyll serve --config local_config.yml
8476
```
8577
This will start the Jekyll development web server and should be viewable in a
8678
web browser at `http://localhost:4000/`
8779

8880
* create a branch in git for your changes
89-
* Make the desired changes, commit them. **BE SURE NOT TO ADD `_config.yml`**
81+
* Make the desired changes, commit them. **BE SURE NOT TO ADD `_config.yml` or `local_config.yml`**
9082
to your changes.
9183
* Push the changes to your forked repo on github
9284

@@ -109,4 +101,4 @@ Please verify `https://YOUR_USERNAME_HERE.github.io/heads-wiki/` with `https://v
109101

110102
### Pushing Changes Upstream
111103

112-
Create a pull request in the osresearch/heads-wiki project that points to your changes to request review and contribute back to the parent project.
104+
Create a pull request in the linuxboot/heads-wiki project that points to your changes to request review and contribute back to the parent project.

_config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
remote_theme: pmarsceill/just-the-docs
1+
#This is remote configuration, used by github for github pages rendering. See local_config.yml for local jekyll serving of pages editions
2+
remote_theme: just-the-docs/just-the-docs
23
color_scheme: dark
34
heading_anchors: true
45
aux_links:
56
"Heads on GitHub":
6-
- "https://github.com/osresearch/heads"
7+
- "https://github.com/linuxboot/heads"
78
aux_links_new_tab: true
89

910
title: Heads - Wiki
@@ -14,6 +15,6 @@ last_edit_time_format: "%b %e %Y at %I:%M %p" # uses ruby's time format: https:/
1415
# Footer "Edit this page on GitHub" link text
1516
gh_edit_link: true
1617
gh_edit_link_text: "Edit this page on GitHub."
17-
gh_edit_repository: "https://github.com/osresearch/heads-wiki"
18+
gh_edit_repository: "https://github.com/linuxboot/heads-wiki"
1819
gh_edit_branch: "master"
1920
gh_edit_view_mode: "edit"

local_config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#This is local jekyll for local rendering of edits, used by github for github pages. Use with: 'jekyll serve --config local_config.yml'
2+
theme: "just-the-docs"
3+
color_scheme: dark
4+
heading_anchors: true
5+
aux_links:
6+
"Heads on GitHub":
7+
- "https://github.com/linuxboot/heads"
8+
aux_links_new_tab: true
9+
10+
title: Heads - Wiki
11+
12+
last_edit_timestamp: true # show or hide edit time - page must have `last_modified_date` defined in the frontmatter
13+
last_edit_time_format: "%b %e %Y at %I:%M %p" # uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html
14+
15+
# Footer "Edit this page on GitHub" link text
16+
gh_edit_link: true
17+
gh_edit_link_text: "Edit this page on GitHub."
18+
gh_edit_repository: "https://github.com/linuxboot/heads-wiki"
19+
gh_edit_branch: "master"
20+
gh_edit_view_mode: "edit"

0 commit comments

Comments
 (0)