diff --git a/docs/handbook/meta/syntax.md b/docs/handbook/meta/syntax.md index 6936b38..6f2a30c 100644 --- a/docs/handbook/meta/syntax.md +++ b/docs/handbook/meta/syntax.md @@ -97,7 +97,7 @@ Here are some common admonitions, when you might use them, and quick code snippe We've modified a couple of the standard admonitions to mean something a little different on this site. #### Deprecated -For pages that were once accurate, but are either no longer accurate and not being updated, or have become obsolete due to discontinuation, etc. +For pages that were once accurate, but are either no longer accurate and not being updated, or have become obsolete due to discontinuation, etc. Place this admonition at the top of the page, just below the title. !!! deprecated "Deprecated" The `deprecated` admonition looks like this. @@ -111,6 +111,19 @@ For pages that were once accurate, but are either no longer accurate and not bei Please see for the equivalet updated information. ``` +#### Page Moved +If a page has been moved, but you still need to link to the original page location for whatever reason. Remove the content of the page (just cut and paste it to the new location), and leave a blank page with just a title and this admonition, linking to the new page location. + +!!! page-moved "Page Moved" + This page has been moved to a new location. Please view the relocated page [:octicons-arrow-right-16: here](#). + +??? quote "Syntax" + Copy and paste at the top of page content: + ``` + !!! page-moved "Page Moved" + This page has been moved to a new location. Please view the relocated page [:octicons-arrow-right-16: here](#). + ``` + #### Work in Progress For pages that aren't yet complete, and need revisions (that we know are going to be revised sooner/more frequently than a typical page.) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 8288ea2..1868549 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -16,6 +16,24 @@ mask-image: var(--md-admonition-icon--deprecated); } +:root { + --md-admonition-icon--page-moved: url('data:image/svg+xml;charset=utf-8,') +} +.md-typeset .admonition.page-moved, +.md-typeset details.page-moved { + border-color: rgb(255, 121, 198); +} +.md-typeset .page-moved > .admonition-title, +.md-typeset .page-moved > summary { + background-color: rgba(255, 121, 198, 0.1); +} +.md-typeset .page-moved > .admonition-title::before, +.md-typeset .page-moved > summary::before { + background-color: rgb(255, 121, 198); + -webkit-mask-image: var(--md-admonition-icon--page-moved); + mask-image: var(--md-admonition-icon--page-moved); +} + .note-blue { color: #448AFF; }