Compare commits

..

No commits in common. "master" and "v0.1.7" have entirely different histories.

8 changed files with 36 additions and 42 deletions

View File

@ -2,12 +2,10 @@
name: Build and publish
on:
workflow_dispatch:
inputs:
version:
type: string
description: Semver to publish
required: true
# - workflow_dispatch
push:
branches:
- master
jobs:
build-and-publish:
@ -35,6 +33,4 @@ jobs:
run: npm run tsc
- name: Publish package
run: |
npm version ${{ inputs.version }} --allow-same-version --git-tag-version false
npm publish
run: npm publish

View File

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

View File

@ -58,7 +58,6 @@ figure[data-lang].big svg {
max-height: none !important;
} */
/* figure:is([data-lang='pikchr'], [data-lang='nomnoml'], [data-lang='bytefield']) svg text:not([fill^='var']) { */
figure:is([data-lang='pikchr'], [data-lang='nomnoml'], [data-lang='bytefield']) svg text {
fill: var(--theme-text-body);
}

View File

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

18
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@doc-utils/docs2website",
"version": "0.2.1",
"version": "0.1.7",
"publishConfig": {
"registry": "https://gitea.jbrumond.me/api/packages/doc-utils/npm/"
},
@ -24,7 +24,7 @@
"dependencies": {
"@doc-utils/color-themes": "^0.2.0",
"@doc-utils/jsonschema2markdown": "^0.1.1",
"@doc-utils/markdown2html": "^0.3.6",
"@doc-utils/markdown2html": "^0.3.5",
"glob": "^10.2.3",
"ical": "^0.8.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) {
if (render_as_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);

View File

@ -34,7 +34,7 @@ export async function render_markdown_file(state: BuildState, in_file: string) {
const out_file = await map_input_file_to_output_file(state, in_file, [ '.md', '.markdown' ], '.html');
const out_url = map_output_file_to_url(state, out_file);
const { frontmatter, text, hash } = await read_text(in_file);
if (frontmatter?.skip) {
return;
}