Skip to content

Commit

Permalink
refactor(core): update project files
Browse files Browse the repository at this point in the history
  • Loading branch information
bandantonio committed Feb 3, 2023
1 parent 646f5b3 commit e0b2a76
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 85 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
public
dist
coverage
node_modules
.nyc_output
1 change: 1 addition & 0 deletions docs/README.adoc
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
"coverageReporters": [
"lcov",
"text"
],
"coveragePathIgnorePatterns": [
"src/commands",
"src/server.ts",
"src/index.ts"
]
},
"semistandard": {
Expand Down
163 changes: 86 additions & 77 deletions src/assets/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,16 @@
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Fira+Code:wght@400;700&display=swap');
body{font-family:'Fira Sans',sans-serif;color:#3b454e;min-height:100vh;position:relative;padding:3em 0}
.navbar-brand{margin-left:1.5em}
body{font-family:'Fira Sans',sans-serif;color:#3b454e;min-height:100vh;position:relative;padding:3em 0;overflow-x: initial;}
.navbar-brand{margin-left:1em}
.navbar-brand:hover{color:#fad000}
.list_title{font-size:12px;font-weight:bold; text-transform:uppercase;margin-bottom:1em;margin-left:1em;color:#2d2b57}
.list_heading{font-size:13px;font-weight:700;margin:.8em 0 0}
[aria-expanded="false"]::before{display:inline-block;width:1em;font-family:'FontAwesome';content:'\f105';font-size:80%}
[aria-expanded="true"]::before{display:inline-block;width:1em;font-family:'FontAwesome';content:'\f107';font-size:80%}
.list_files{list-style:none}
.list_files>li{margin-left:-.5em}
.sidebar,.toc{position:fixed;overflow:scroll}
.powered-by a{text-decoration:none}
.powered-by a:hover{color:#DB504A;font-weight:500}
.toc{right:0}
.list_item.ind-3{padding-left:1em}
.list_item.ind-4{padding-left:2em}
.list_item.ind-5{padding-left:3em}
.list_item.ind-6{padding-left:4em}
.sidebar_list,.toc_list{font-size:80%;list-style:none;max-height:80vh}
.sidebar_list a.active{color:#DB504A;font-weight:700;text-decoration:underline;}
.sidebar_list a:hover,.toc_list a:hover{color:#DB504A}
.sidebar_list a,.toc_list a{color:#2d2b57;text-decoration:none}
.toc_list a.active{color:#DB504A;font-weight:700}
.sidebar_list{margin:0;padding-left:.5em}
.btn{display:inherit}
.nav-link{display:inherit;padding:inherit}
.full_content{margin-top:2em;margin-bottom:2em}
.content_area{margin:0 auto}
.full_content {margin-top:2em;margin-bottom:2em;font-size:95%}
.content_area{margin:0 auto;overflow-y: scroll;}
.content_area a{color:#DB504A;text-decoration:underline}
.content_area a:hover{text-decoration:none}
.content_area a code, .content_area code a{color:#fad000;text-decoration:underline}
.content_area a:hover code{text-decoration:none}
.content_area p{font-size:95%}
.navbar{background-color:#2d2b57}
.navbar-brand{color:#fad000}
h1,h2,h3,h4,h5,h5,h6{font-weight:700;color:#3b454e}
Expand All @@ -39,10 +20,20 @@ h3{font-size:1.4em}
h4{font-size:1.2em}
h5{font-size:1em}
h6{font-size:.8em}
.content_area li,p{font-size:95%}
.sidebar,.toc{position:fixed;top:5em;}
.sidebar{padding:0 1em 1em 2em}
.toc{right:0;overflow:scroll}
.sidebar a,.toc a{color:#2d2b57;text-decoration:none;}
.list_title {text-transform: uppercase;font-weight:600}
.list_title::before{font-family: FontAwesome;margin-right: 5px;}
.sidebar > .list_title::before {content: "\f00b";}
.toc > .list_title::before {content: "\f039";}
.sidebar ul, .toc ul{list-style-type:none;padding-left:1.5em}
.sidebar .nav-link,.toc .nav-link {padding: 0 !important;}
.sidebar a.active,.toc a.active{color:#DB504A;font-weight:700}
code{color:#e3dfff;background-color:#2d2b57;padding:.1em .2em;border-radius:.2em}
pre{border-radius:5px;position:relative;}
pre::before{content:attr(data-language);font-family:'Fira Code',Arial,Helvetica,sans-serif;font-weight:700;font-size:.7rem;position:absolute;float:right;top:.3rem;right:.5rem;color:#f7df1e!important}
pre:has(> code):before{content:attr(data-language);font-family:'Fira Code',Arial,Helvetica,sans-serif;font-weight:700;font-size:.7rem;position:absolute;float:right;top:.3rem;right:.5rem;color:#f7df1e!important}
pre:hover::before{right:5rem}
.highlight>code{display: block;}
.copy-block{display:none;position:absolute;float:right;right:.5em;top:.1em;color:#f7df1e;cursor:pointer}
Expand All @@ -51,48 +42,66 @@ pre:hover>.copy-block{display:block}
pre:not(:hover)>.copy-block{display:none}
li p{margin:0}

@media (max-width: 576px) {
.h-anchor{scroll-margin-top:60px}
#sidebarToggler{text-align:center}
.navbar-toggler{color:#fad000}
.navbar-toggler[aria-expanded="false"]::before{font-family:'FontAwesome';content:'\f107'}
.navbar-toggler[aria-expanded="true"]::before{font-family:'FontAwesome';content:'\f105'}
#sidebarToggler .list_title{color:#dee2e6;margin-left:0}
#sidebarToggler .sidebar_list{padding:0}
.sidebar_list a,.powered-by{color:#fad000}
.sidebar{display:none}
.list_heading{margin:0 auto;color:#dee2e6}
.list_heading:hover{color:#dee2e6}
.toc{display:none}
.content_area{width:85%}
.powered-by{display:none}
}

@media (min-width: 992px) {
#sidebarToggler{display:none!important}
.powered-by{font-size:70%;margin-left:1em;position:fixed;bottom:1em}
.powered-by a{color:#2d2b57}
}

@media (min-width: 768px) and (max-width: 992px) {
#sidebarToggler{display:none!important}
.sidebar_list,.toc_list{padding-left:1em}
.content_area{width:65%}
.powered-by{font-size:60%;margin-left:1em;position:fixed;bottom:1em}
.powered-by a{color:#2d2b57}
}

@media (min-width: 576px) and (max-width: 768px) {
#sidebarToggler{display:none!important}
.sidebar_list{padding-left:1em}
.content_area{width:80%;margin:0 2em 0 auto}
.toc{display:none}
.powered-by{font-size:50%;margin-left:1em;position:fixed;bottom:1em}
.powered-by a{color:#2d2b57}
}























































h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400}
h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"#";font-size:.85em;display:block;padding-top:.1em}
h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"#";font-size:.85em;display:block;padding-top:.1em}
h1:hover>a.anchor,h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible}
h1,h2,h3,h4,h5,h6{scroll-margin-top:76px}
.listingblock>.content{position:relative}
Expand Down Expand Up @@ -181,9 +190,9 @@ select{width:100%}
a img{border:0}
p{text-rendering:optimizeLegibility}
p aside{font-size:.875em;line-height:1.35;font-style:italic}
#toctitle,.sidebarblock>.content>.title{font-family:'Open Sans','DejaVu Sans',sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em}
/* #toctitle,.sidebarblock>.content>.title{font-family:'Open Sans','DejaVu Sans',sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em} */
h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0}
h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em}
h3,.sidebarblock>.content>.title{font-size:1.375em}
hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em}
small{font-size:60%;line-height:inherit}
ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit}
Expand All @@ -197,7 +206,7 @@ blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px s
blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)}

@media screen and (min-width:768px) {
#toctitle,.sidebarblock>.content>.title{line-height:1.2}
.sidebarblock>.content>.title{line-height:1.2}
}

table{background:#fff;margin-bottom:1.25em;border:1px solid #dedede;word-wrap:normal}
Expand All @@ -206,7 +215,7 @@ table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:
table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}
table tr.even,table tr.alt{background:#f8f8f7}
table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{line-height:1.6}
#toctitle,.sidebarblock>.content>.title{line-height:1.2;word-spacing:-.05em}
.sidebarblock>.content>.title{line-height:1.2;word-spacing:-.05em}
h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}
.center{margin-left:auto;margin-right:auto}
.stretch{width:100%}
Expand Down Expand Up @@ -261,18 +270,18 @@ b.button::after{content:"]";padding:0 2px 0 3px}
#toc li{line-height:1.3334;margin-top:.3334em}
#toc a{text-decoration:none}
#toc a:active{text-decoration:underline}
#toctitle{color:#7a2518;font-size:1.2em}
/* #toctitle{color:#7a2518;font-size:1.2em} */

@media screen and (min-width:768px) {
#toctitle{font-size:1.375em}
body.toc2{padding-left:15em;padding-right:0}
#toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
#toc.toc2>ul{font-size:.9em;margin-bottom:0}
/* #toctitle{font-size:1.375em} */
/* body.toc2{padding-left:15em;padding-right:0} */
/* #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} */
/* #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} */
/* #toc.toc2>ul{font-size:.9em;margin-bottom:0}
#toc.toc2 ul ul{margin-left:0;padding-left:1em}
#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}
body.toc2.toc-right{padding-left:0;padding-right:15em}
body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}
body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0} */
}

@media screen and (min-width:1280px) {
Expand All @@ -298,7 +307,7 @@ body.toc2.toc-right{padding-left:0;padding-right:20em}
}

.sect1:last-child{padding-bottom:0}
.sect1+.sect1{border-top:1px solid #e7e7e9}
/* .sect1+.sect1{border-top:1px solid #e7e7e9} */
details,.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em}
details{margin-left:1.25rem}
details>summary{cursor:pointer;display:block;position:relative;line-height:1.6;margin-bottom:.625rem;outline:none;-webkit-tap-highlight-color:transparent}
Expand All @@ -308,7 +317,7 @@ details[open]>summary::before{border:solid transparent;border-top:solid;border-w
details>summary::after{content:"";width:1.25rem;height:1em;position:absolute;top:.3em;left:-1.25rem}
.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:'Noto Serif','DejaVu Serif',serif;font-size:1rem;font-style:italic}
table.tableblock.fit-content>caption.title{white-space:nowrap;width:0}
.paragraph.lead>p,#preamble>.sectionbody>[class=paragraph]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)}
/* .paragraph.lead>p,#preamble>.sectionbody>[class=paragraph]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)} */
.exampleblock>.content{border:1px solid #e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;border-radius:4px}
.exampleblock>.content>:first-child{margin-top:0}
.exampleblock>.content>:last-child{margin-bottom:0}
Expand All @@ -317,7 +326,7 @@ table.tableblock.fit-content>caption.title{white-space:nowrap;width:0}
.sidebarblock>:last-child{margin-bottom:0}
.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center}
.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}
.admonitionblock pre,.admonitionblock>.content>pre{border-radius:4px;overflow-x:auto;padding:0 0 0 1em;font-size:.9em}
.admonitionblock pre,.admonitionblock>.content>pre{border-radius:4px;overflow-x:auto;font-size:.9em}

.literalblock pre{background:#f7f7f8}
.literalblock.output pre{color:#f7f7f8;background:rgba(0,0,0,.9)}
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"include": [ "src" ],
"exclude": [ "node_modules" ],
"exclude": [ "node_modules", "src/server.ts" ],
"compilerOptions": {
"rootDir": "./src",
"outDir": "./public",
"outDir": "./dist",

"lib": [ "es2021" ],
"module": "commonjs",
Expand Down

0 comments on commit e0b2a76

Please sign in to comment.