diff --git a/docs/assets/definitions.scss b/docs/assets/definitions.scss index b90560541..53475f465 100644 --- a/docs/assets/definitions.scss +++ b/docs/assets/definitions.scss @@ -4,5 +4,5 @@ $code-color: #696680; $link-color: #368d74; $link-hover-color: #26614d; $selection-color: #f0e7ed; -$basic-transition: color 0.25s ease; +$basic-transition: color 0.25s ease, fill 0.25s ease; $nav-width: 260px; diff --git a/docs/common/DocsAnchorTarget.vue b/docs/common/DocsAnchorTarget.vue index fb9d6cab5..994beadce 100644 --- a/docs/common/DocsAnchorTarget.vue +++ b/docs/common/DocsAnchorTarget.vue @@ -31,11 +31,11 @@ type: String, validator(value) { if (!value.startsWith('#')) { - log.warn(`'anchor' prop value '${value}' must start with a '#'`); + log.error(`'anchor' prop value '${value}' must start with a '#'`); return false; } - if (!value.match(/^#[a-zA-Z0-9_-]*$/)) { - log.warn(`'anchor' prop value '${value}' must match /^#[a-zA-Z0-9_-]*$/`); + if (!value.match(/^#[\w.:]*$/)) { + log.error(`'anchor' prop value '${value}' invalid`); return false; } return true; diff --git a/docs/common/DocsGithubLink.vue b/docs/common/DocsGithubLink.vue new file mode 100644 index 000000000..6247f206d --- /dev/null +++ b/docs/common/DocsGithubLink.vue @@ -0,0 +1,108 @@ + + + + + + + diff --git a/docs/common/DocsPageTemplate/BranchLink.vue b/docs/common/DocsPageTemplate/BranchLink.vue new file mode 100644 index 000000000..36c883ed0 --- /dev/null +++ b/docs/common/DocsPageTemplate/BranchLink.vue @@ -0,0 +1,48 @@ + + + + + + + diff --git a/docs/common/DocsPageTemplate/GitHubLink.vue b/docs/common/DocsPageTemplate/GitHubLink.vue deleted file mode 100644 index b0f1573b2..000000000 --- a/docs/common/DocsPageTemplate/GitHubLink.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - diff --git a/docs/common/DocsPageTemplate/Header.vue b/docs/common/DocsPageTemplate/Header.vue index cc27cd690..55fcfe0eb 100644 --- a/docs/common/DocsPageTemplate/Header.vue +++ b/docs/common/DocsPageTemplate/Header.vue @@ -13,7 +13,7 @@ link to current page - +