-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add syntax highlighting plugin using Pygments.
This adds my old Pygments lexer before Jekyll moved to rouge. This is done by using a Jekyll plugin to call the `pygmentize` binary to convert the code using the lexer `_FvwmLexer.py` included in the source. Because the plugin is run for each block of code, a full python environment is loaded each time `pygmentize` is called, which increases the build times significantly (30seconds on my machine). By default the plugin will not run `pygmentize`, so this feature needs to be enabled by running: jekyll build --config _config.yml,_config-fvwm2rc.yml Since the site is built rarely, implementing a faster method is not work any additional complexity in using the custom lexer. Also since this is a custom _plugin, this will not work on githubpages directly.
- Loading branch information
1 parent
78a8786
commit 9ae3281
Showing
86 changed files
with
1,316 additions
and
953 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# FvwmWeb (fvwm.org) at GitHub | ||
|
||
This is the source to build the Fvwm website, <https://fvwm.org/>, | ||
including the wiki located at <https://fvwm.org/Wiki/>. | ||
This is the source to build the Fvwm website, <https://www.fvwm.org/>, | ||
including the wiki located at <https://www.fvwm.org/Wiki/>. | ||
|
||
The site is built from Markdown files with front matter using Jekyll: | ||
<https://jekyllrb.com>. | ||
The site is generated from markdown using Jekyll (including Jekyll's | ||
Kramdown flavor of markdown). See <https://www.fvwm.org/Wiki/FvwmWeb/> | ||
for information on how the site is organized, the styles and plugins used. | ||
|
||
To build and view the site locally, you can clone the | ||
repo, then use Jekyll to build the site: | ||
To build and view the site locally, clone the repo, then use Jekyll to | ||
serve the site: | ||
|
||
``` | ||
```shell | ||
git clone https://github.com/fvwmorg/fvwmorg.github.io.git | ||
cd fvwmorg.github.io | ||
jekyll s | ||
jekyll serve | ||
``` | ||
|
||
To contribute to the website or wiki, make a pull | ||
request against this repo. | ||
|
||
More information about the layout and contributing | ||
to the fvwm.org website and wiki can be found at | ||
<https://fvwm.org/Wiki/FvwmWeb/>. | ||
|
||
By default the fvwm2rc syntax highlighter is disabled, as it increases | ||
build times drastically. To build or serve the site with syntax highlighting | ||
use the `--config` option: | ||
|
||
```shell | ||
jekyll serve --config _config.yml,_config-fvwm2rc.yml | ||
``` |
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.