Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MUYSC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jorge Alfredo Jaimes Teherán
MUYSC
Commits
6e0397ef
Unverified
Commit
6e0397ef
authored
4 years ago
by
Chris Holdgraf
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MAINTAIN: Moving admonition section (#934)
parent
51b7ef14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/content/content-blocks.md
+29
-29
29 additions, 29 deletions
docs/content/content-blocks.md
with
29 additions
and
29 deletions
docs/content/content-blocks.md
+
29
−
29
View file @
6e0397ef
...
@@ -186,6 +186,35 @@ Admonition dropdowns require JavaScript to be enabled on the browser which they
...
@@ -186,6 +186,35 @@ Admonition dropdowns require JavaScript to be enabled on the browser which they
By contrast, the
[
dropdown directive
](
content/panels
)
below works purely
*via*
HTML+CSS.
By contrast, the
[
dropdown directive
](
content/panels
)
below works purely
*via*
HTML+CSS.
:::
:::
### Insert code cell outputs into admonitions
If you'd like to insert the outputs of running code
*inside*
admonition
blocks, we recommend using
[
Glue functionality
](
content:code-outputs:glue
)
.
For example, we'll insert one of the outputs that was glued into the book from the
[
code outputs page
](
./code-outputs.md
)
.
The below code:
````
md
```
{note}
Here's my figure:
{glue:figure}`sorted_means_fig`
```
````
generates:
```
{note}
Here's my figure:
{glue:}`sorted_means_fig`
```
See
[](
content:code-outputs:glue
)
for more information on how to use Glue to insert your outputs directly into your content.
:::{tip}
To hide code input and output that generated the variable you are inserting, use the
`remove_cell`
tag.
See
[](
../interactive/hiding.md
)
for more information and other tag options.
:::
(content/panels)=
(content/panels)=
## Panels and Dropdowns
## Panels and Dropdowns
...
@@ -326,35 +355,6 @@ Term 3
...
@@ -326,35 +355,6 @@ Term 3
<img
src=
"../images/fun-fish.png"
alt=
"fishy"
width=
"200px"
>
<img
src=
"../images/fun-fish.png"
alt=
"fishy"
width=
"200px"
>
```
```
### Insert code cell outputs into admonitions
If you'd like to insert the outputs of running code
*inside*
admonition
blocks, we recommend using
[
Glue functionality
](
content:code-outputs:glue
)
.
For example, we'll insert one of the outputs that was glued into the book from the
[
code outputs page
](
./code-outputs.md
)
.
The below code:
````
md
```
{note}
Here's my figure:
{glue:figure}`sorted_means_fig`
```
````
generates:
```
{note}
Here's my figure:
{glue:}`sorted_means_fig`
```
See
[](
content:code-outputs:glue
)
for more information on how to use Glue to insert your outputs directly into your content.
:::{tip}
To hide code input and output that generated the variable you are inserting, use the
`remove_cell`
tag.
See
[](
../interactive/hiding.md
)
for more information and other tag options.
:::
## Quotations and epigraphs
## Quotations and epigraphs
Quotations and epigraphs provide ways to highlight information given by others.
Quotations and epigraphs provide ways to highlight information given by others.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment