Skip to content

Commit

Permalink
+ styling for toc::[]
Browse files Browse the repository at this point in the history
  • Loading branch information
holyjak committed May 18, 2021
1 parent bad656c commit 40756af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ modified for the needs of https://fulcro-community.github.io/

1. Change the code, tag it (`git tag v123`), push (`git push; git push --tags`)
2. https://github.com/fulcro-community/antora-ui-default/releases[Create a release] manually from the pushed tag (even though GH will create a release automatically from the tag, you need to also create it manually so that our workflow kicks in)
3. A GH action kicks it that builds the ui bundle and attaches it to the release
3. A GH action kicks in that builds the ui bundle and attaches it to the release
4. Update the url to it in https://github.com/fulcro-community/fulcro-community.github.io/antora-pipeline.yml

The original readme follows below.
Expand Down
11 changes: 11 additions & 0 deletions preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ Author Name
:!table-caption:
:page-pagination:

First line...

++++
<div id="toc" class="toc">
<div id="toctitle" class="title">Table of Contents</div>
<ul class="sectlevel1">
<li><a href="#_your_learning_journey">Your learning journey</a></li>
</ul>
</div>
++++

image:multirepo-ssg.svg[Multirepo SSG,200,float=right]
Platonem complectitur mediocritatem ea eos.
Ei nonumy deseruisse ius.
Expand Down
3 changes: 3 additions & 0 deletions src/css/toc.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,6 @@
.toc .toc-menu .is-hidden-toc {
display: none !important;
}

/* Our modifications for the generated `toc::[]` which has no .toc-menu */
.toc .title { font-weight: bold; margin-top: 1em; }

0 comments on commit 40756af

Please sign in to comment.