-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating usage documentation and adding remaining papers
Signed-off-by: vsoch <[email protected]>
- Loading branch information
Showing
38 changed files
with
304 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ no LaTeX required here!) and render our notes on GitHub pages. The theme is base | |
|
||
- [Add papers](#how-to-add-or-view-papers) either manually or with a citation manager | ||
- [Take notes](#how-to-take-notes) in Markdown, as you typically would | ||
- [Develop Locally](#develop-locally) using Jekyll natively or via a container | ||
- [Making changes](#how-to-make-changes) to structure or design of template. | ||
- [Push to GitHub](#deploy-to-github-pages) to use the GitHub action to automatically deploy the site. | ||
|
||
Since the jekyll-scholar plugin doesn't work on GitHub pages, we provide a GitHub action to do it easily. | ||
|
@@ -37,21 +39,121 @@ While we could investigate solutions to run a web server and render a PDF, the s | |
approach of using Markdown will likely be more comfortable for users with different | ||
editor preferences. | ||
|
||
## Develop Locally | ||
|
||
First, you should clone the repository (and likely fork to your own user account first). | ||
The command below would have "vsoch" replaced with your GitHub username. | ||
|
||
```bash | ||
git clone [email protected]:vsoch/notes-jekyll | ||
cd notes-jekyll | ||
``` | ||
|
||
If you have jekyll installed locally, you can typically then install dependencies with | ||
bundle. | ||
|
||
```bash | ||
$ bundle install | ||
``` | ||
|
||
And then run the development server, which will update with changes: | ||
|
||
```bash | ||
bundle exec jekyll serve | ||
``` | ||
|
||
If not, then you can use a container environment to develop. First, build the container: | ||
|
||
```bash | ||
$ docker build -t notes-jekyll . | ||
``` | ||
|
||
And then run it, making sure to bind the correct directory to where it is expected | ||
in the container, and exposing port 4000. | ||
|
||
```bash | ||
$ docker run --rm -v "$PWD:/srv/jekyll" -p 4000:4000 notes-jekyll | ||
Configuration file: /srv/jekyll/_config.yml | ||
Source: /srv/jekyll | ||
Destination: /srv/jekyll/_site | ||
Incremental build: disabled. Enable with --incremental | ||
Generating... | ||
Jekyll Feed: Generating feed for posts | ||
done in 2.825 seconds. | ||
Auto-regeneration: enabled for '/srv/jekyll' | ||
Server address: http://0.0.0.0:4000/notes-jekyll/ | ||
Server running... press ctrl-c to stop. | ||
``` | ||
|
||
You should then be able to open your browser to [http://127.0.0.1:4000](http://127.0.0.1:4000). | ||
You can then edit files on your local machine, and the server will refresh with changes. | ||
|
||
### Docker to Local | ||
|
||
If you use a Docker container at any point and then run the local development server, | ||
you'll likely get a permissions error since the Docker user wrote the `_site` folder. | ||
You can easily fix this by entirely removing the site folder - it will be re-generated. | ||
|
||
```bash | ||
rm -rf _site | ||
``` | ||
|
||
## How to make changes | ||
|
||
There are several easy ways to make changes, most of which are represented in the [_config.yml](_config.yml). | ||
For the most part, fields are self explanatory. The following sections might be of particular interest: | ||
|
||
### Jekyll scholar | ||
|
||
The `scholar` section includes information on how to generate references. | ||
|
||
``` | ||
scholar: | ||
style: _bibliography/my-ieee.cls | ||
bibliography: references.bib | ||
bibliography_template: bibitem-template | ||
repository: papers | ||
details_dir: "paper-details" | ||
details_layout: "details.html" | ||
# details_permalink: "/notes-jekyll/:details_dir/:key:extension" | ||
# Ensure that details are not printed twice | ||
details_link: "" | ||
``` | ||
|
||
#### style | ||
The style for your citations is represented with `style`, above to be `_bibliography/my-ieee.cls` | ||
|
||
#### bibliography | ||
The default bibliography file is references.bib, also located in [_bibliography](_bibliography) | ||
|
||
#### bibliography_template | ||
The template for each reference (`bibliography_template`) is in [_layouts/bibitem-template.html](_layouts/bibitem-template.html) | ||
|
||
#### repository | ||
The folder with physical papers (`repository`), named according to their key, is in [papers](papers). | ||
|
||
#### details_layout | ||
The details page for each paper (`details_layout`) should be a template in [_layouts/details.html](_layouts/details.html) | ||
|
||
#### details_dir | ||
The path where the paper detail files will be rendered (`details_dir`) is `paper-details`. In practice I found that this was not rendered correctly - it was missing the base url. So I hide the default details render via `details_link` being empty, and add my own in the `bibliography_template`. For this same reason, the default `details_permalink` did not seem to work. Finally, in the documentation it noted that `details_link` should be a key, but in practice I found that it did not work. | ||
|
||
|
||
For all of the above, this generally means that you can change the location of papers pages, your bibliography, and | ||
how the citations are formatted. There are quite a few other settings, and I found it helpful to look | ||
at the [jekyll-scholar README](https://github.com/inukshuk/jekyll-scholar) and the [defaults.rb](https://github.com/inukshuk/jekyll-scholar/blob/master/lib/jekyll/scholar/defaults.rb) file. Everything is exposed from classes to help | ||
style your entries to ordering and types. | ||
|
||
## Deploy to GitHub pages | ||
|
||
When you push to the main branch, you will trigger a build defined as a [GitHub workflow](.github/workflows/build.yml) | ||
that will deploy the site to GitHub pages. | ||
|
||
For more instructions on how to write references into posts, see [notes-jekyll](https://vsoch.github.io/notes-jekyll/about/) | ||
on GitHub pages. | ||
|
||
## LICENSE | ||
|
||
This code has inherited the original [LICENSE](LICENSE) that must be preserved | ||
from the repositories where it originates from. | ||
|
||
## TODO | ||
|
||
- Need to add pdfs for each paper example | ||
- format bibtex | ||
- add fun image to 404 page | ||
- We want to be able to click on a reference on any page and open the PDF | ||
- We also want a link for each reference that shows all the places it's cited (harder) | ||
- create usage guide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- slug: notetheme | ||
name: NoteTheme | ||
- slug: it | ||
name: Information Technology | ||
- slug: registration | ||
name: registration | ||
- slug: notes-jekyll | ||
name: notes-jekyll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<form action="{{ site.baseurl }}/search" method="get"> | ||
<input type="search" name="q" {% if include.add_id %}id="search-input"{% endif %} placeholder="Search something?" autofocus> | ||
<input type="search" name="q" {% if include.add_id %}id="search-input"{% endif %} placeholder="Search for..." autofocus> | ||
<input type="submit" value="Search" style="display: none;"> | ||
</form> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
* Auto generated table of contents | ||
{:toc} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.