Permalink
Browse files

Rewrite the syntax highlighter docs etc.

  • Loading branch information...
bep committed Sep 23, 2017
1 parent 9243545 commit 20959c7b9124341dfc4d139748244818b9cb3641
Showing with 506 additions and 336 deletions.
  1. +5 −0 config.toml
  2. +0 −22 content/commands/_index.md
  3. +3 −2 content/commands/hugo.md
  4. +3 −2 content/commands/hugo_benchmark.md
  5. +3 −2 content/commands/hugo_check.md
  6. +3 −2 content/commands/hugo_check_ulimit.md
  7. +3 −2 content/commands/hugo_config.md
  8. +3 −2 content/commands/hugo_convert.md
  9. +3 −2 content/commands/hugo_convert_toJSON.md
  10. +3 −2 content/commands/hugo_convert_toTOML.md
  11. +3 −2 content/commands/hugo_convert_toYAML.md
  12. +3 −2 content/commands/hugo_env.md
  13. +4 −2 content/commands/hugo_gen.md
  14. +3 −2 content/commands/hugo_gen_autocomplete.md
  15. +46 −0 content/commands/hugo_gen_chromastyles.md
  16. +3 −2 content/commands/hugo_gen_doc.md
  17. +3 −2 content/commands/hugo_gen_man.md
  18. +3 −2 content/commands/hugo_import.md
  19. +3 −2 content/commands/hugo_import_jekyll.md
  20. +3 −2 content/commands/hugo_list.md
  21. +3 −2 content/commands/hugo_list_drafts.md
  22. +3 −2 content/commands/hugo_list_expired.md
  23. +3 −2 content/commands/hugo_list_future.md
  24. +3 −2 content/commands/hugo_new.md
  25. +3 −2 content/commands/hugo_new_site.md
  26. +3 −2 content/commands/hugo_new_theme.md
  27. +5 −2 content/commands/hugo_server.md
  28. +3 −2 content/commands/hugo_undraft.md
  29. +3 −2 content/commands/hugo_version.md
  30. +188 −0 content/content-management/syntax-highlighting.md
  31. +1 −1 content/functions/highlight.md
  32. +0 −237 content/tools/syntax-highlighting.md
  33. +135 −17 data/docs.json
  34. +43 −0 src/css/_chroma.css
  35. +1 −1 themes/gohugoioTheme/src/css/main.css
  36. +5 −5 themes/gohugoioTheme/static/dist/app.bundle.js
  37. +1 −1 themes/gohugoioTheme/static/dist/main.css
View
@@ -21,6 +21,11 @@ disableAliases = true
# It is (currently) not in use, but you can do ```go in a content file if you want to.
pygmentsCodeFences = true
pygmentsOptions = ""
# Use the Chroma stylesheet
pygmentsUseClasses = true
pygmentsUseClassic = false
# See https://help.farbox.com/pygments.html
pygmentsStyle = "friendly"
View

This file was deleted.

Oops, something went wrong.
View
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo"
slug: hugo
url: /commands/hugo/
@@ -34,6 +34,7 @@ hugo [flags]
--cleanDestinationDir remove files from destination not found in static directories
--config string config file (default is path/config.yaml|json|toml)
-c, --contentDir string filesystem path to content directory
--debug debug output
-d, --destination string filesystem path to write files to
--disable404 do not render 404 page
--disableKinds stringSlice disable different kind of pages (home, RSS etc.)
@@ -77,4 +78,4 @@ hugo [flags]
* [hugo undraft](/commands/hugo_undraft/) - Undraft resets the content's draft status
* [hugo version](/commands/hugo_version/) - Print the version number of Hugo
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo benchmark"
slug: hugo_benchmark
url: /commands/hugo_benchmark/
@@ -59,6 +59,7 @@ hugo benchmark [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -69,4 +70,4 @@ hugo benchmark [flags]
### SEE ALSO
* [hugo](/commands/hugo/) - hugo builds your site
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo check"
slug: hugo_check
url: /commands/hugo_check/
@@ -23,6 +23,7 @@ Contains some verification checks
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -34,4 +35,4 @@ Contains some verification checks
* [hugo](/commands/hugo/) - hugo builds your site
* [hugo check ulimit](/commands/hugo_check_ulimit/) - Check system ulimit settings
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo check ulimit"
slug: hugo_check_ulimit
url: /commands/hugo_check_ulimit/
@@ -28,6 +28,7 @@ hugo check ulimit [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -38,4 +39,4 @@ hugo check ulimit [flags]
### SEE ALSO
* [hugo check](/commands/hugo_check/) - Contains some verification checks
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo config"
slug: hugo_config
url: /commands/hugo_config/
@@ -27,6 +27,7 @@ hugo config [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -37,4 +38,4 @@ hugo config [flags]
### SEE ALSO
* [hugo](/commands/hugo/) - hugo builds your site
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo convert"
slug: hugo_convert
url: /commands/hugo_convert/
@@ -28,6 +28,7 @@ See convert's subcommands toJSON, toTOML and toYAML for more information.
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -41,4 +42,4 @@ See convert's subcommands toJSON, toTOML and toYAML for more information.
* [hugo convert toTOML](/commands/hugo_convert_totoml/) - Convert front matter to TOML
* [hugo convert toYAML](/commands/hugo_convert_toyaml/) - Convert front matter to YAML
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo convert toJSON"
slug: hugo_convert_toJSON
url: /commands/hugo_convert_tojson/
@@ -28,6 +28,7 @@ hugo convert toJSON [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
-o, --output string filesystem path to write files to
@@ -41,4 +42,4 @@ hugo convert toJSON [flags]
### SEE ALSO
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo convert toTOML"
slug: hugo_convert_toTOML
url: /commands/hugo_convert_totoml/
@@ -28,6 +28,7 @@ hugo convert toTOML [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
-o, --output string filesystem path to write files to
@@ -41,4 +42,4 @@ hugo convert toTOML [flags]
### SEE ALSO
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo convert toYAML"
slug: hugo_convert_toYAML
url: /commands/hugo_convert_toyaml/
@@ -28,6 +28,7 @@ hugo convert toYAML [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
-o, --output string filesystem path to write files to
@@ -41,4 +42,4 @@ hugo convert toYAML [flags]
### SEE ALSO
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo env"
slug: hugo_env
url: /commands/hugo_env/
@@ -27,6 +27,7 @@ hugo env [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -37,4 +38,4 @@ hugo env [flags]
### SEE ALSO
* [hugo](/commands/hugo/) - hugo builds your site
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo gen"
slug: hugo_gen
url: /commands/hugo_gen/
@@ -23,6 +23,7 @@ A collection of several useful generators.
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -33,7 +34,8 @@ A collection of several useful generators.
### SEE ALSO
* [hugo](/commands/hugo/) - hugo builds your site
* [hugo gen autocomplete](/commands/hugo_gen_autocomplete/) - Generate shell autocompletion script for Hugo
* [hugo gen chromastyles](/commands/hugo_gen_chromastyles/) - Generate CSS stylesheet for the Chroma code highlighter
* [hugo gen doc](/commands/hugo_gen_doc/) - Generate Markdown documentation for the Hugo CLI.
* [hugo gen man](/commands/hugo_gen_man/) - Generate man pages for the Hugo CLI
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo gen autocomplete"
slug: hugo_gen_autocomplete
url: /commands/hugo_gen_autocomplete/
@@ -45,6 +45,7 @@ hugo gen autocomplete [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -55,4 +56,4 @@ hugo gen autocomplete [flags]
### SEE ALSO
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -0,0 +1,46 @@
---
date: 2017-09-25T08:30:15+02:00
title: "hugo gen chromastyles"
slug: hugo_gen_chromastyles
url: /commands/hugo_gen_chromastyles/
---
## hugo gen chromastyles
Generate CSS stylesheet for the Chroma code highlighter
### Synopsis
Generate CSS stylesheet for the Chroma code highlighter for a given style. This stylesheet is needed if pygmentsUseClasses is enabled in config.
See https://help.farbox.com/pygments.html for preview of available styles
```
hugo gen chromastyles [flags]
```
### Options
```
-h, --help help for chromastyles
--highlightStyle string style used for highlighting lines (see https://github.com/alecthomas/chroma) (default "bg:#ffffcc")
--linesStyle string style used for line numbers (see https://github.com/alecthomas/chroma)
--style string highlighter style (see https://help.farbox.com/pygments.html) (default "friendly")
```
### Options inherited from parent commands
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
-v, --verbose verbose output
--verboseLog verbose logging
```
### SEE ALSO
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo gen doc"
slug: hugo_gen_doc
url: /commands/hugo_gen_doc/
@@ -34,6 +34,7 @@ hugo gen doc [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -44,4 +45,4 @@ hugo gen doc [flags]
### SEE ALSO
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
@@ -1,5 +1,5 @@
---
date: 2017-07-16T23:23:14+02:00
date: 2017-09-25T08:30:15+02:00
title: "hugo gen man"
slug: hugo_gen_man
url: /commands/hugo_gen_man/
@@ -30,6 +30,7 @@ hugo gen man [flags]
```
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
@@ -40,4 +41,4 @@ hugo gen man [flags]
### SEE ALSO
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 16-Jul-2017
###### Auto generated by spf13/cobra on 25-Sep-2017
Oops, something went wrong.

0 comments on commit 20959c7

Please sign in to comment.