9 Commits

Author SHA1 Message Date
bd9945b24b 0.1.10
All checks were successful
Build and test / build-and-test (18.x) (push) Successful in 2m47s
Build and test / build-and-test (20.x) (push) Successful in 2m13s
2023-11-27 11:41:21 -08:00
760af891c5 remove inline-flex from a default styles 2023-11-27 11:41:16 -08:00
f8b15f0ff4 0.1.9
All checks were successful
Build and test / build-and-test (18.x) (push) Successful in 7m55s
Build and test / build-and-test (20.x) (push) Successful in 3m11s
2023-11-26 21:46:01 -08:00
20e585e708 change table class names to avoid collision with prism highlighting 2023-11-26 21:45:55 -08:00
3da2c28b13 cleanup
All checks were successful
Build and test / build-and-test (18.x) (push) Successful in 20s
Build and test / build-and-test (20.x) (push) Successful in 20s
2023-08-19 16:07:37 -07:00
35a2080714 install
All checks were successful
Build and publish / build-and-publish (push) Successful in 21s
2023-08-19 16:06:52 -07:00
e99170f015 0.1.8
Some checks failed
Build and publish / build-and-publish (push) Failing after 11s
2023-08-19 16:04:40 -07:00
f48d0a6194 publish pipeline 2023-08-19 16:04:36 -07:00
92a9fe5685 fix base url issues 2023-08-19 16:04:07 -07:00
7 changed files with 36 additions and 35 deletions

View File

@@ -2,10 +2,10 @@
name: Build and publish name: Build and publish
on: on:
# - workflow_dispatch - workflow_dispatch
push: # push:
branches: # branches:
- master # - master
jobs: jobs:
build-and-publish: build-and-publish:

View File

@@ -2,9 +2,9 @@
name: Build and test name: Build and test
on: on:
# push: push:
# branches: branches:
# - master - master
pull_request: pull_request:
branches: branches:
- master - master

View File

@@ -94,7 +94,7 @@ del {
a { a {
font-family: inherit; font-family: inherit;
color: var(--theme-text-link); color: var(--theme-text-link);
display: inline-flex; display: inline;
align-items: center; align-items: center;
column-gap: 0.2rem; column-gap: 0.2rem;
} }
@@ -109,7 +109,8 @@ a:visited {
color: var(--theme-text-link-visited); color: var(--theme-text-link-visited);
} }
a.icon-link { a.icon-link,
a.inline-flex {
display: inline-flex; display: inline-flex;
column-gap: 0.3rem; column-gap: 0.3rem;
align-items: center; align-items: center;
@@ -192,64 +193,64 @@ mark {
/* ===== Tables ===== */ /* ===== Tables ===== */
table, .table, td, .td { table, .faux-table, td, .faux-td {
color: var(--theme-text-body); color: var(--theme-text-body);
font-family: var(--font-body); font-family: var(--font-body);
} }
table, .table { table, .faux-table {
display: table; display: table;
margin-block: 2rem; margin-block: 2rem;
border-collapse: collapse; border-collapse: collapse;
} }
table, th, td, table, th, td,
.table, .th, .td { .faux-table, .faux-th, .faux-td {
font-size: 1rem; font-size: 1rem;
line-height: 1.75; line-height: 1.75;
} }
thead, .thead { thead, .faux-thead {
display: table-header-group; display: table-header-group;
} }
tbody, .tbody { tbody, .faux-tbody {
display: table-row-group; display: table-row-group;
} }
tbody tr, tbody tr,
.tbody .tr { .faux-tbody .faux-tr {
border-top: 1px var(--theme-line) solid; border-top: 1px var(--theme-line) solid;
} }
tr, .tr { tr, .faux-tr {
display: table-row; display: table-row;
} }
th, .th { th, .faux-th {
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
color: var(--theme-text-heading); color: var(--theme-text-heading);
} }
th, .th, th, .faux-th,
td, .td { td, .faux-td {
padding-block: 0.5rem; padding-block: 0.5rem;
padding-inline: 1rem; padding-inline: 1rem;
display: table-cell; display: table-cell;
} }
td, .td { td, .faux-td {
display: table-cell; display: table-cell;
font-weight: 300; font-weight: 300;
vertical-align: top; vertical-align: top;
} }
:is(td, .td):not(:last-of-type) { :is(td, .faux-td):not(:last-of-type) {
border-inline-end: 0.1rem solid var(--theme-line); border-inline-end: 0.1rem solid var(--theme-line);
} }
:is(table, .table) :is(input, select) { :is(table, .faux-table) :is(input, select) {
margin-block: 0; margin-block: 0;
} }

18
package-lock.json generated
View File

@@ -1,16 +1,16 @@
{ {
"name": "@doc-utils/docs2website", "name": "@doc-utils/docs2website",
"version": "0.1.7", "version": "0.1.10",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@doc-utils/docs2website", "name": "@doc-utils/docs2website",
"version": "0.1.7", "version": "0.1.10",
"dependencies": { "dependencies": {
"@doc-utils/color-themes": "^0.2.0", "@doc-utils/color-themes": "^0.2.0",
"@doc-utils/jsonschema2markdown": "^0.1.1", "@doc-utils/jsonschema2markdown": "^0.1.1",
"@doc-utils/markdown2html": "^0.3.4", "@doc-utils/markdown2html": "^0.3.6",
"glob": "^10.2.3", "glob": "^10.2.3",
"ical": "^0.8.0", "ical": "^0.8.0",
"ical-generator": "^4.1.0", "ical-generator": "^4.1.0",
@@ -51,9 +51,9 @@
} }
}, },
"node_modules/@doc-utils/markdown2html": { "node_modules/@doc-utils/markdown2html": {
"version": "0.3.4", "version": "0.3.6",
"resolved": "https://gitea.jbrumond.me/api/packages/doc-utils/npm/%40doc-utils%2Fmarkdown2html/-/0.3.4/markdown2html-0.3.4.tgz", "resolved": "https://gitea.jbrumond.me/api/packages/doc-utils/npm/%40doc-utils%2Fmarkdown2html/-/0.3.6/markdown2html-0.3.6.tgz",
"integrity": "sha512-zL3kay/zbrBJWGKIxGCyF+EXsafSxY1aN+miG+GOyml1neoOwd67vNIiE96KuEucf6rvuICPiYTjm3uJxkjd/g==", "integrity": "sha512-LCt5HAAcHz6lE+IqV2igQP7bbTq1juNbyn4KWqn3xe9eSslIyl7EvSaEH68WQtqEzX/iVFOvZz7qSoqsQeggXA==",
"dependencies": { "dependencies": {
"bytefield-svg": "^1.6.1", "bytefield-svg": "^1.6.1",
"dompurify": "^2.3.6", "dompurify": "^2.3.6",
@@ -2695,9 +2695,9 @@
} }
}, },
"@doc-utils/markdown2html": { "@doc-utils/markdown2html": {
"version": "0.3.4", "version": "0.3.6",
"resolved": "https://gitea.jbrumond.me/api/packages/doc-utils/npm/%40doc-utils%2Fmarkdown2html/-/0.3.4/markdown2html-0.3.4.tgz", "resolved": "https://gitea.jbrumond.me/api/packages/doc-utils/npm/%40doc-utils%2Fmarkdown2html/-/0.3.6/markdown2html-0.3.6.tgz",
"integrity": "sha512-zL3kay/zbrBJWGKIxGCyF+EXsafSxY1aN+miG+GOyml1neoOwd67vNIiE96KuEucf6rvuICPiYTjm3uJxkjd/g==", "integrity": "sha512-LCt5HAAcHz6lE+IqV2igQP7bbTq1juNbyn4KWqn3xe9eSslIyl7EvSaEH68WQtqEzX/iVFOvZz7qSoqsQeggXA==",
"requires": { "requires": {
"bytefield-svg": "^1.6.1", "bytefield-svg": "^1.6.1",
"dompurify": "^2.3.6", "dompurify": "^2.3.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@doc-utils/docs2website", "name": "@doc-utils/docs2website",
"version": "0.1.7", "version": "0.1.10",
"publishConfig": { "publishConfig": {
"registry": "https://gitea.jbrumond.me/api/packages/doc-utils/npm/" "registry": "https://gitea.jbrumond.me/api/packages/doc-utils/npm/"
}, },
@@ -24,7 +24,7 @@
"dependencies": { "dependencies": {
"@doc-utils/color-themes": "^0.2.0", "@doc-utils/color-themes": "^0.2.0",
"@doc-utils/jsonschema2markdown": "^0.1.1", "@doc-utils/jsonschema2markdown": "^0.1.1",
"@doc-utils/markdown2html": "^0.3.5", "@doc-utils/markdown2html": "^0.3.6",
"glob": "^10.2.3", "glob": "^10.2.3",
"ical": "^0.8.0", "ical": "^0.8.0",
"ical-generator": "^4.1.0", "ical-generator": "^4.1.0",

View File

@@ -141,7 +141,7 @@ export function mustache_context(state: BuildState, page_url: string, metadata:
export async function render_page(state: BuildState, in_file: string, out_file: string, out_url: OutFileURL, text: string, render_as_markdown: boolean, hash: string, frontmatter?: any) { export async function render_page(state: BuildState, in_file: string, out_file: string, out_url: OutFileURL, text: string, render_as_markdown: boolean, hash: string, frontmatter?: any) {
if (render_as_markdown) { if (render_as_markdown) {
const opts = Object.assign({ }, state.conf.markdown, { const opts = Object.assign({ }, state.conf.markdown, {
base_url: out_url.abs_url // base_url: out_url.abs_url,
}); });
text = await render_markdown_to_html(text, opts); text = await render_markdown_to_html(text, opts);