Add page-moved admonition
This commit is contained in:
parent
e305c9a8df
commit
76755b810c
2 changed files with 32 additions and 1 deletions
|
@ -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 <insert page link, if available> 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.)
|
||||
|
||||
|
|
|
@ -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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-3.5a.75.75 0 0 1 0-1.5h3.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073H3.75a.25.25 0 0 0-.25.25v6.5a.75.75 0 0 1-1.5 0z"/><path d="m5.427 15.573 3.146-3.146a.25.25 0 0 0 0-.354L5.427 8.927A.25.25 0 0 0 5 9.104V11.5H.75a.75.75 0 0 0 0 1.5H5v2.396c0 .223.27.335.427.177"/></svg>')
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue