-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First public release of the Hugo Book, available as: separate AsciiDoc sources split by chapter; a single AsciiDoc document (pre-processed via the AsciiDoc Coalescer); and converted to a standalone single HTML doc. The Hugo Book is also served on the WWW via GitHub pages, as a single HTML document.
- Loading branch information
Showing
114 changed files
with
91,810 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
########################################## | ||
# The HUGO Book, by Kent Tessman 2004: # | ||
# https://github.com/tajmone/hugo-book # | ||
########################################## | ||
|
||
root = true | ||
|
||
|
||
## AsciiDoc | ||
########### | ||
[*.{ad,adoc,asciidoc}] | ||
indent_size = unset | ||
indent_style = space | ||
end_of_line = unset | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
|
||
## Batch Scripts | ||
################ | ||
[*.bat] | ||
indent_style = tab | ||
indent_size = unset | ||
end_of_line = crlf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
|
||
## Configurations | ||
################# | ||
[.{git*,editorconfig,*.yml}] | ||
indent_style = space | ||
indent_size = unset | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
|
||
## CSV | ||
####### | ||
[*.csv] | ||
indent_size = 2 | ||
indent_style = space | ||
end_of_line = unset | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false | ||
|
||
|
||
## Haml Templates | ||
################# | ||
[*.haml] | ||
indent_size = 2 | ||
indent_style = space | ||
end_of_line = unset | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
|
||
## Hugo Sources | ||
############### | ||
[.{hug,h,g}] | ||
indent_size = 8 | ||
charset = latin1 | ||
|
||
|
||
## Markdown GFM | ||
############### | ||
[*.md] | ||
indent_style = space | ||
indent_size = unset | ||
end_of_line = unset | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
|
||
## Plain-Text Files | ||
################### | ||
[{*.txt,LICENSE}] | ||
indent_style = space | ||
indent_size = unset | ||
end_of_line = unset | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = unset | ||
|
||
|
||
## Ruby | ||
####### | ||
[*.rb] | ||
indent_size = 2 | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
|
||
## Sass/SCSS | ||
############ | ||
[*.{sass,scss}] | ||
indent_size = 2 | ||
indent_style = space | ||
end_of_line = unset | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
|
||
## Shell Scripts | ||
################ | ||
[*.sh] | ||
end_of_line = lf | ||
indent_style = tab | ||
indent_size = unset | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
# EOF # |
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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
########################################## | ||
# The HUGO Book, by Kent Tessman 2004: # | ||
# https://github.com/tajmone/hugo-book # | ||
########################################## | ||
|
||
dist: xenial | ||
|
||
git: | ||
depth: false | ||
|
||
before_install: | ||
- sudo apt-get update | ||
- sudo apt-get install -y libboost-dev liblua5.3-dev | ||
install: | ||
# ================================== | ||
# Asciidoctor Toolchain Dependencies | ||
# ================================== | ||
- gem install asciidoctor tilt haml concurrent-ruby | ||
# Clone and Compile Highlight from Sources: | ||
- git clone https://gitlab.com/saalen/highlight highlight_src | ||
- pushd ./highlight_src | ||
- make cli | ||
- sudo make install | ||
- popd | ||
# ===================================== | ||
# Install EditorConfig Validation Tools | ||
# ===================================== | ||
- npm install -g eclint | ||
|
||
jobs: | ||
include: | ||
# ================================ | ||
# Asciidoctor Toolchain Build Test | ||
# ================================ | ||
- name: "Asciidoctor Toolchain" | ||
script: | ||
- pushd ./docs_src/ | ||
- bash ./build.sh | ||
# ============================================== | ||
# EditorConfig Code Styles Validation via EClint | ||
# ============================================== | ||
# https://editorconfig.org | ||
# https://www.npmjs.com/package/eclint | ||
- name: "EditorConfig Validation" | ||
script: | ||
- bash ./validate.sh |
Oops, something went wrong.