diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..b3ab200072 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: ruby +rvm: + - 2.5.3 + +before_script: + - gem install html-proofer + +# Assume bundler is being used, therefore +# the `install` step will run `bundle install` by default. +script: + - bundle exec jekyll build + - bundle exec htmlproofer ./_site --assume-extension --allow-hash-href + +env: + global: + - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer + +cache: bundler # caching bundler gem packages will speed up build \ No newline at end of file diff --git a/Gemfile b/Gemfile index d6fed7efaa..eef36123dd 100644 --- a/Gemfile +++ b/Gemfile @@ -30,4 +30,5 @@ gem "wdm", "~> 0.1.0" if Gem.win_platform? group :development, :test do gem "pry" + gem "html-proofer" end \ No newline at end of file diff --git a/_config.yml b/_config.yml index cea599ae08..8b0da6993b 100644 --- a/_config.yml +++ b/_config.yml @@ -15,52 +15,66 @@ defaults: - scope: path: "*" values: - root: "." + root: "../.." - scope: path: "*/*" values: - root: ".." + root: "../.." -default_root: ".." +default_root: "../.." collections_dir: docs collections: + getting-started: + output: true + caption: Getting started + sidebar_index: 1 + frontpage: _getting-started/index.md install-and-build: output: true + permalink: docs/:collection/:slug caption: Install and build - sidebar_index: 1 + sidebar_index: 2 frontpage: _install-and-build/Installing-Geth.md interface: output: true + permalink: docs/:collection/:slug caption: Interacting with Geth - sidebar_index: 2 + sidebar_index: 3 support: output: true + permalink: docs/:collection/:slug caption: Issues and support - sidebar_index: 3 + sidebar_index: 4 developers: output: true + permalink: docs/:collection/:slug caption: Developer docs - sidebar_index: 4 + sidebar_index: 5 clef: output: true + permalink: docs/:collection/:slug caption: Clef - sidebar_index: 5 + sidebar_index: 6 frontpage: _clef/Overview.md whisper: output: true + permalink: docs/:collection/:slug caption: Whisper - sidebar_index: 6 + sidebar_index: 7 frontpage: _whisper/Whisper-Overview.md rpc: output: true + permalink: docs/:collection/:slug caption: JSON RPC APIs - sidebar_index: 7 + sidebar_index: 8 doc: output: true + permalink: docs/:collection/:slug caption: Other - sidebar_index: 8 + sidebar_index: 9 legacy: output: true + permalink: docs/:collection/:slug caption: Legacy content - sidebar_index: 9 + sidebar_index: 10 diff --git a/_data/navbar.yml b/_data/navbar.yml index 4ad130e2ae..d85d1d6868 100644 --- a/_data/navbar.yml +++ b/_data/navbar.yml @@ -1,3 +1,3 @@ -Install: /install-and-build/Installing-Geth +Install: /docs/install-and-build/installing-geth Downloads: /downloads Documentation: /docs diff --git a/_includes/link.html b/_includes/link.html index 07b7a54722..b66e4a17e1 100644 --- a/_includes/link.html +++ b/_includes/link.html @@ -1 +1 @@ -{% if page.root %}{% assign root=page.root %}{% else %}{% assign root=site.default_root %}{% endif %}{{ include.url | remove: ".html" | prepend: root | replace: '//', '/' }} +{% if page.root %}{% assign root=page.root %}{% else %}{% assign root=site.default_root %}{% endif %}{{ include.url | remove: ".html" | prepend: root | replace: '//', '/' }} \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 0d7bc47a43..adc45ac19d 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -26,12 +26,12 @@ common-js: - Go Ethereum + Go Ethereum
- + Geth mascot
@@ -22,10 +23,10 @@ css:

What is Ethereum?

Ethereum is a decentralized platform that runs smart contracts, applications that run exactly as programmed without possibility of downtime, censorship, fraud or third party interference.

-

See our website or read the docs for more infos!

+

See our website or read the docs for more infos!

- + Ethereum logo

@@ -36,7 +37,7 @@ css:

See our repository and downloads section for the code!

- + Geth mascot

diff --git a/install.md b/install.md index 9ed5a8885a..f67fd4cd43 100644 --- a/install.md +++ b/install.md @@ -3,4 +3,4 @@ title: Install root: .. permalink: /install/ --- -See [Installing Geth](../doc/Installing-Geth). \ No newline at end of file +See [Installing Geth](../docs/install-and-build/installing-geth). \ No newline at end of file