diff --git a/_config.yml b/_config.yml index 8d7c2de4a9..92488e74a5 100644 --- a/_config.yml +++ b/_config.yml @@ -17,3 +17,65 @@ defaults: path: "" values: layout: "docs" + +menu: + - main: + name: "Component Projects" + identifier: "mn_components" + weight: 8 + - main: + name: "About" + identifier: "mn_about" + weight: 9 + - main: + name: "Docs archive" + identifier: "mn_versions" + weight: 10 + - main: + name: "Version 1.11" + identifier: "smn_eleven" + parent: "mn_versions" + url: "http://docs.docker.com/v1.11/" + weight: -11 + - main: + name: "Version 1.10" + identifier: "smn_ten" + parent: "mn_versions" + url: "http://docs.docker.com/v1.10/" + weight: -10 + - main: + name: "Version 1.9" + identifier: "smn_nineteen" + parent: "mn_versions" + url: "http://docs.docker.com/v1.9/" + weight: -9 + - main: + name: "Version 1.8" + identifier: "smn_eightteen" + parent: "mn_versions" + url: "http://docs.docker.com/v1.8/" + weight: -8 + - main: + name: "Version 1.7" + identifier: "smn_seventeen" + parent: "mn_versions" + url: "http://docs.docker.com/v1.7/" + weight: -7 + - main: + name: "Version 1.6" + identifier: "smn_sixteen" + parent: "mn_versions" + url: "http://docs.docker.com/v1.6/" + weight: -6 + - main: + name: "Version 1.5" + identifier: "smn_fifteen" + parent: "mn_versions" + url: "http://docs.docker.com/v1.5/" + weight: -5 + - main: + name: "Version 1.4" + identifier: "smn_fourteen" + parent: "mn_versions" + url: "http://docs.docker.com/v1.4/" + weight: -4 diff --git a/_data/advisories.toml b/_data/advisories.toml deleted file mode 100644 index f3131bdb7c..0000000000 --- a/_data/advisories.toml +++ /dev/null @@ -1,26 +0,0 @@ - -#TODO: work out how to add a data dir to any repo that has documentation -# atm, repo's have a docs dir that is akin to the hugo content dir. - - -# Define Advisory texts -# can be used in page frontmatter: -# advisory = "experimental" - -[texts] -experimental = "The functionality described on this page is marked as Experimental, and as such, may change before it becomes generally available." -rc = "The Swarm mode feature included in Docker Engine 1.12 is a release candidate feature and might be subject to non backward-compatible changes. Some functionality may change before the feature becomes generally available." -docker4mac-beta = "Docker for Mac is currently in public beta. Some functionality may change before the product becomes generally available." -docker4win-beta = "Docker for Windows is currently in public beta. Some functionality may change before the product becomes generally available." - -swarm = "See [Swarm mode overview](/engine/swarm/) for the orchestration features introduced in Docker Engine 1.12. Only refer to the Docker Swarm documents below for information on the standalone Swarm product." - -engine = "This site contains documentation for the v1.12 release candidate version of Docker Engine. For the Docker Engine v1.11 docs, see [https://docs.docker.com/v1.11/](https://docs.docker.com/v1.11/). Docker for Mac and Docker for Windows are currently in Beta." - - -# URL based advisories -# any URL that begins with "/engine/" will get the "engine" advisory -# will be over-ridden by the `advisory` frontmatter in the topic -# [paths] -# "/engine/" = "engine" -# "/swarm/" = "swarm" diff --git a/_data/advisories.yaml b/_data/advisories.yaml new file mode 100644 index 0000000000..d55001ff3a --- /dev/null +++ b/_data/advisories.yaml @@ -0,0 +1,24 @@ + +#TODO: work out how to add a data dir to any repo that has documentation +# atm, repo's have a docs dir that is akin to the hugo content dir. + + +# Define Advisory texts +# can be used in page frontmatter: +# advisory = "experimental" + +texts: + experimental: "The functionality described on this page is marked as Experimental, and as such, may change before it becomes generally available." + rc: "The Swarm mode feature included in Docker Engine 1.12 is a release candidate feature and might be subject to non backward-compatible changes. Some functionality may change before the feature becomes generally available." + docker4mac-beta: "Docker for Mac is currently in public beta. Some functionality may change before the product becomes generally available." + docker4win-beta: "Docker for Windows is currently in public beta. Some functionality may change before the product becomes generally available." + swarm: "See [Swarm mode overview](/engine/swarm/) for the orchestration features introduced in Docker Engine 1.12. Only refer to the Docker Swarm documents below for information on the standalone Swarm product." + engine: "This site contains documentation for the v1.12 release candidate version of Docker Engine. For the Docker Engine v1.11 docs, see [https://docs.docker.com/v1.11/](https://docs.docker.com/v1.11/). Docker for Mac and Docker for Windows are currently in Beta." + + +# URL based advisories +# any URL that begins with "/engine/" will get the "engine" advisory +# will be over-ridden by the `advisory` frontmatter in the topic +# [paths] +# "/engine/" = "engine" +# "/swarm/" = "swarm" diff --git a/_includes/doctree.html b/_includes/doctree.html deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/_includes/tree.html b/_includes/tree.html new file mode 100644 index 0000000000..471f4dd9d8 --- /dev/null +++ b/_includes/tree.html @@ -0,0 +1,936 @@ + diff --git a/_layouts/docs.html b/_layouts/docs.html index 8fff252a4a..2d52645d29 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -169,942 +169,7 @@ ng\:form {
- + {% include tree.html %}
diff --git a/toc.txt b/toc.txt new file mode 100644 index 0000000000..61a0932069 --- /dev/null +++ b/toc.txt @@ -0,0 +1,15 @@ +--- +layout: null +--- +{ +{% for main in site.menu %}"main {{ forloop.index }}": { + "title": {{ main.name | jsonify }}, + "menu": {{ main | jsonify }} +}, +{% endfor %} +{% for page in site.pages %}{% if page.path contains ".md" %}"{{ page.path }}": { + "title": {{ page.title | jsonify }}, + "menu": {{ page.menu | jsonify }} +}{% if forloop.index < forloop.length %},{% endif %} +{% endif %}{% endfor %} +}