Jekyll Site and database for the Pathway Figure OCR project
Visit site at: https://pfocr.wikipathways.org/
Pathway figure content can be added as .md files to the _figures directory. The top portion of the .md file is the Jekyll Front Matter, which defines metadata used to generate the site, organize content and generate search metadata optimized for search engines.
The site is too big to be build by GH Pages, so it is built locally and _site
is pushed to the gh-pages branch. The _site
dir is otherwise ignored by the main branch.
In order to rebuild the site locally you'll need to:
- clone the repo
- install Ruby, Jekyll and Bundler (guide)
- Try to match these versions where possible in order to get the same behavior locally as via GitHub. Pay attention to Jekyll and Ruby versions in particular.
- E.g., MacOS:
brew install ruby@2.7
andecho 'export PATH="/opt/homebrew/opt/ruby@2.7/bin:$PATH"' >> ~/.zshrc
andgem install jekyll -v 3.9.3
- run
bundle install
- run
bundle exec jekyll serve
<-- run this each time you want to restart the local server - goto http://127.0.0.1:4000
- run
bundle exec jekyll build
<-- run this to generate _site files without localhost URLs