An open API service indexing awesome lists of open source software.

https://github.com/bmaupin/wiki

My wiki
https://github.com/bmaupin/wiki

github-pages jekyll wiki

Last synced: 5 months ago
JSON representation

My wiki

Awesome Lists containing this project

README

          

This is my wiki. There are many like it, but this one is mine.

Theme heavily inspired by [Sphinx theme for readthedocs.org](https://github.com/rtfd/sphinx_rtd_theme)

## Development

#### Install Ruby

(Includes bundle, gem, and header files for installing native modules)

```
sudo apt install ruby ruby-bundler ruby-dev
```

#### Install and configure Jekyll

[https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/](https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/)

#### Running Jekyll

```
bundle exec jekyll serve --livereload
```

See [this answer](https://stackoverflow.com/a/73909796/399105) if you get this error:

```
/var/lib/gems/3.0.0/gems/pathutil-0.16.2/lib/pathutil.rb:502:in `read': no implicit conversion of Hash into Integer (TypeError)
```

#### Updating gems

This is particularly useful if Github bugs you that you have a security vulnerability in one of your dependencies (this has been remedied for this project by removing Gemfile.lock from git 🤷)

```
rm Gemfile.lock
bundle install
```

## Testing

#### HTMLProofer

This project uses [HTMLProofer](https://github.com/gjtorikian/html-proofer) to check for broken internal links. To test locally with HTMLProofer:

1. Build the site

```
bundle exec jekyll build
```

1. Get the parameters used for HTMLProofer in GitHub Actions here: [.github/workflows/ci.yml](.github/workflows/ci.yml)

1. Run HTMLProofer

```
docker run --rm --entrypoint "htmlproofer" -v "$PWD:/work" -it anishathalye/proof-html:1.4.0 /work/_site --assume_extension --disable-external --empty-alt-ignore --url-ignore "_,#" --url-swap "^/wiki:"
```