Local browsing
This page explains how to browse and edit the website locally. In case of difficulties, see more on Testing your GitHub Pages site locally with Jekyll.
Requirements
Setting up
-
Clone or download a zip of the cbs-latex repository.
-
Run the following commands in a terminal from the
cbs-latexdirectory:bundle update bundle exec jekyll serveThe default port
4000can be overridden usingbundle exec jekyll serve --port .....
Browsing
Open a web browser at http://localhost:4000/cbs-latex/ (the final / is required).
Stop the local server with Control-C when no longer needed.
Editing
Jekyll updates the web pages when you change the Markdown files (it takes a few seconds).
Colors
The CBS highlighting colors can be changed by editing the SCSS files in _sass/custom.1
When browsing these web pages on GitHub, the color scheme can be toggled between
lightanddark.
The toggle button is at the top of the navigation panel.
For local browsing, the following configuration options are provided:
color_scheme- set to
darkto disable thelightscheme toggle_color_scheme- set to
darkto support toggling betweenlightanddark toggle_page_url- leave unset to display the toggle button on all pages
toggle_auto_mode- set to
trueto toggle automatically when the system mode preference changes toggle_text_1- set the label on the button for changing to the
darkscheme toggle_text_2- set the label on the button for changing to the
lightscheme
-
The current highlighting colors should be distinguishable to users with Deuteranopia (tested using Color Oracle). ↩