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 356eb8f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ modified for the needs of https://fulcro-community.github.io/

== Usage

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
4. Update the url to it in https://github.com/fulcro-community/fulcro-community.github.io/antora-pipeline.yml
1. Change the code, verify the change is OK and passes linting via `gulp bundle`, 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) - Draft release, type the new tag name, ...
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-playbook.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
6 changes: 6 additions & 0 deletions src/css/toc.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,9 @@
.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 356eb8f

Please sign in to comment.