mirror of https://github.com/docker/docs.git
Merge pull request #11487 from thaJeztah/edit_url_fix
use jekyll configuration for edit urls
This commit is contained in:
commit
4dc252c910
|
@ -2,9 +2,6 @@
|
||||||
for this project's contribution guidelines. Remove these comments
|
for this project's contribution guidelines. Remove these comments
|
||||||
as you go.
|
as you go.
|
||||||
|
|
||||||
DO NOT edit files and directories listed in _data/not_edited_here.yaml.
|
|
||||||
These are maintained in upstream repos and changes here will be lost.
|
|
||||||
|
|
||||||
Help us merge your changes more quickly by adding details and setting metadata
|
Help us merge your changes more quickly by adding details and setting metadata
|
||||||
(such as labels, milestones, and reviewers) over at the right-hand side.-->
|
(such as labels, milestones, and reviewers) over at the right-hand side.-->
|
||||||
|
|
||||||
|
|
40
_config.yml
40
_config.yml
|
@ -47,6 +47,46 @@ defaults:
|
||||||
toc_min: 2
|
toc_min: 2
|
||||||
toc_max: 3
|
toc_max: 3
|
||||||
tree: true
|
tree: true
|
||||||
|
|
||||||
|
# Set the correct edit-URL for upstream resources. We usually don't create a direct
|
||||||
|
# edit link for these, and instead point to the directory that contains the file.
|
||||||
|
- scope:
|
||||||
|
path: engine/api/v1.*
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/docker/tree/master/docs/api"
|
||||||
|
- scope:
|
||||||
|
path: engine/deprecated
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/cli/tree/master/docs/"
|
||||||
|
- scope:
|
||||||
|
path: engine/extend
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/cli/tree/master/docs/extend"
|
||||||
|
- scope:
|
||||||
|
path: engine/reference
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/cli/tree/master/docs/reference"
|
||||||
|
- scope:
|
||||||
|
path: engine/reference/commandline
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/cli/tree/master/docs/reference/commandline"
|
||||||
|
- scope:
|
||||||
|
path: notary/reference
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/theupdateframework/notary/tree/master/docs/reference"
|
||||||
|
- scope:
|
||||||
|
path: registry/configuration
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/distribution/tree/master/docs"
|
||||||
|
- scope:
|
||||||
|
path: registry/spec
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/distribution/tree/master/docs/spec"
|
||||||
|
- scope:
|
||||||
|
path: compliance
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/mirantis/compliance/tree/master/docs/compliance"
|
||||||
|
|
||||||
# Hide Enterprise content from sitemap, and include banner in stubs that
|
# Hide Enterprise content from sitemap, and include banner in stubs that
|
||||||
# content has moved to mirantis
|
# content has moved to mirantis
|
||||||
- scope:
|
- scope:
|
||||||
|
|
|
@ -45,6 +45,46 @@ defaults:
|
||||||
toc_min: 2
|
toc_min: 2
|
||||||
toc_max: 3
|
toc_max: 3
|
||||||
tree: true
|
tree: true
|
||||||
|
|
||||||
|
# Set the correct edit-URL for upstream resources. We usually don't create a direct
|
||||||
|
# edit link for these, and instead point to the directory that contains the file.
|
||||||
|
- scope:
|
||||||
|
path: engine/api/v1.*
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/docker/tree/master/docs/api"
|
||||||
|
- scope:
|
||||||
|
path: engine/deprecated
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/cli/tree/master/docs/"
|
||||||
|
- scope:
|
||||||
|
path: engine/extend
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/cli/tree/master/docs/extend"
|
||||||
|
- scope:
|
||||||
|
path: engine/reference
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/cli/tree/master/docs/reference"
|
||||||
|
- scope:
|
||||||
|
path: engine/reference/commandline
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/cli/tree/master/docs/reference/commandline"
|
||||||
|
- scope:
|
||||||
|
path: notary/reference
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/theupdateframework/notary/tree/master/docs/reference"
|
||||||
|
- scope:
|
||||||
|
path: registry/configuration
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/distribution/tree/master/docs"
|
||||||
|
- scope:
|
||||||
|
path: registry/spec
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/docker/distribution/tree/master/docs/spec"
|
||||||
|
- scope:
|
||||||
|
path: compliance
|
||||||
|
values:
|
||||||
|
edit_url: "https://github.com/mirantis/compliance/tree/master/docs/compliance"
|
||||||
|
|
||||||
# Hide Enterprise content from sitemap, and include banner in stubs that
|
# Hide Enterprise content from sitemap, and include banner in stubs that
|
||||||
# content has moved to mirantis
|
# content has moved to mirantis
|
||||||
- scope:
|
- scope:
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
# Files and directories here are not edited in the docker.github.io repo.
|
|
||||||
# Instead, they are edited in the appropriate upstream repo and pulled
|
|
||||||
# into this repo periodically, or they are automatically generated. The intent
|
|
||||||
# is that if you submit a PR with changes to these files or directories, a CI
|
|
||||||
# job will fail in the PR, indicating that it should not be merged. THIS IS NOT
|
|
||||||
# YET IMPLEMENTED!! The PR reviewer should make sure no files here are in the PR.
|
|
||||||
|
|
||||||
# If you need to edit these files or directories, submit a PR in the repo and
|
|
||||||
# directory listed in "source" below.
|
|
||||||
|
|
||||||
# Make sure directories have the trailing slash, keep the list alphabetical
|
|
||||||
|
|
||||||
overrides:
|
|
||||||
- path: /engine/api/
|
|
||||||
description: "ReDoc/Swagger API specs"
|
|
||||||
source: https://github.com/docker/docker/tree/master/docs/api
|
|
||||||
|
|
||||||
- path: /engine/deprecated/
|
|
||||||
description: Docker Engine deprecation reference
|
|
||||||
source: https://github.com/docker/cli/tree/master/docs/deprecated.md
|
|
||||||
|
|
||||||
- path: /engine/extend/
|
|
||||||
description: References for Docker Engine plugin system
|
|
||||||
source: https://github.com/docker/cli/tree/master/docs/extend/
|
|
||||||
|
|
||||||
- path: /engine/reference/
|
|
||||||
description: Docker Engine CLI and API references
|
|
||||||
source: https://github.com/docker/cli/tree/master/docs/reference/
|
|
||||||
|
|
||||||
- path: /notary/reference/
|
|
||||||
description: Reference docs for Docker Notary
|
|
||||||
source: https://github.com/theupdateframework/notary/tree/master/docs/reference/
|
|
||||||
|
|
||||||
- path: /registry/configuration/
|
|
||||||
description: Reference docs for configuring Docker Registry
|
|
||||||
source: https://github.com/docker/distribution/tree/release/2.7/docs/configuration.md
|
|
||||||
|
|
||||||
- path: /registry/spec/
|
|
||||||
description: Docker Registry API references
|
|
||||||
source: https://github.com/docker/distribution/tree/release/2.7/docs/spec/
|
|
||||||
|
|
||||||
- path: /compliance/
|
|
||||||
description: Docker compliance
|
|
||||||
source: https://github.com/mirantis/compliance/tree/master/docs/compliance
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
{%- if page.edit_url -%}
|
||||||
|
{%- assign edit_url = page.edit_url -%}
|
||||||
|
{%- else -%}
|
||||||
|
{%- assign edit_url = "https://github.com/docker/docker.github.io/edit/master/" | append: page.path -%}
|
||||||
|
{%- endif -%}
|
||||||
<body ng-app="Docker" ng-controller="DockerController" class="colums">
|
<body ng-app="Docker" ng-controller="DockerController" class="colums">
|
||||||
<header>
|
<header>
|
||||||
{% include header.html %}
|
{% include header.html %}
|
||||||
|
|
|
@ -1,17 +1,4 @@
|
||||||
<!-- Page generated {{ site.time }} -->
|
<!-- Page generated {{ site.time }} -->
|
||||||
<!-- Logic for 'edit this button'
|
|
||||||
{% assign edit_url = "https://github.com/docker/docker.github.io/edit/master/" | append: page.path %}
|
|
||||||
{% for entry in site.data.not_edited_here.overrides %}
|
|
||||||
{% if page.path contains entry.path %}
|
|
||||||
{% if entry.source %}
|
|
||||||
{% assign edit_url = entry.source %}
|
|
||||||
{% else %}
|
|
||||||
{% assign edit_url = "" %}
|
|
||||||
{% endif %}
|
|
||||||
{% break %}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
-->
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
|
Loading…
Reference in New Issue