Skip to content

Commit

Permalink
Merge pull request AY2324S1-CS2103T-W10-1#188 from ravern/fix-broken-ci
Browse files Browse the repository at this point in the history
Fix broken CI
  • Loading branch information
ravern authored Nov 11, 2023
2 parents cbf9b35 + 804d678 commit 6bc50ab
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ repository: "AY2324S1-CS2103T-W10-1/tp"
github_icon: "images/github-icon.png"

plugins:
- jemoji
- jemoji
2 changes: 1 addition & 1 deletion docs/_includes/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@
{% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %}
{% endif %}
{% endif %}
{% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc -}}
{% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc -}}
2 changes: 1 addition & 1 deletion docs/_includes/toc.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
{% else %}
* Table of contents
{:toc}
{% endif %}
{% endif %}
130 changes: 65 additions & 65 deletions docs/_sass/toc.scss
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
#markdown-toc {
//@@author ravern-reused
//Reused from https://github.com/AY2324S1-CS2103T-W10-3/tp/blob/master/docs/_sass/toc.scss
//with minor modifications

//Adapted from https://stackoverflow.com/a/51007932/9311854
ol {
counter-reset: item;
}

> li,
ol > li {
counter-increment: item;
}

ol > li {
display: block;
position: relative;
}

ol > li:before {
content: counters(item, ".") ". ";
margin-left: -1em;
}
//@@author ravern-reused
//Reused from https://github.com/AY2324S1-CS2103T-W10-3/tp/blob/master/docs/_sass/toc.scss
//with minor modifications

//Adapted from https://stackoverflow.com/a/51007932/9311854
ol {
counter-reset: item;
}


article.post {
counter-reset: section;

h2:not(.no_toc) {
counter-reset: subsection;
}

h3:not(.no_toc) {
counter-reset: subsubsection;
}

h4:not(.no_toc) {
counter-increment: subsubsection;
}

h2:not(.no_toc)::before {
color: inherit !important;
counter-increment: section;
content: counter(section) ". ";
}

h3:not(.no_toc)::before {
color: inherit !important;
counter-increment: subsection;
content: counter(section) "." counter(subsection) ". ";
}

h4:not(.no_toc)::before {
color: inherit !important;

> li,
ol > li {
counter-increment: item;
}

ol > li {
display: block;
position: relative;
}

ol > li:before {
content: counters(item, ".") ". ";
margin-left: -1em;
}
}


article.post {
counter-reset: section;

h2:not(.no_toc) {
counter-reset: subsection;
}

h3:not(.no_toc) {
counter-reset: subsubsection;
}

h4:not(.no_toc) {
counter-increment: subsubsection;
content: counter(section) "." counter(subsection) "." counter(subsubsection) ". ";
}
}


article.post {
h2:not(.no_toc)::before,
h3:not(.no_toc)::before,
h4:not(.no_toc)::before {
color: black;
}
}

h2:not(.no_toc)::before {
color: inherit !important;
counter-increment: section;
content: counter(section) ". ";
}

h3:not(.no_toc)::before {
color: inherit !important;
counter-increment: subsection;
content: counter(section) "." counter(subsection) ". ";
}

h4:not(.no_toc)::before {
color: inherit !important;
counter-increment: subsubsection;
content: counter(section) "." counter(subsection) "." counter(subsubsection) ". ";
}
}


article.post {
h2:not(.no_toc)::before,
h3:not(.no_toc)::before,
h4:not(.no_toc)::before {
color: black;
}
}

0 comments on commit 6bc50ab

Please sign in to comment.