Skip to content

generate both md and html - #1

Open
paulirish wants to merge 1 commit into
pavelfeldman:masterfrom
paulirish:mdhtml
Open

generate both md and html#1
paulirish wants to merge 1 commit into
pavelfeldman:masterfrom
paulirish:mdhtml

Conversation

@paulirish

Copy link
Copy Markdown

No description provided.

Comment thread parse.js
const domainName = type.domain.name.toLowerCase();
const name = type.name.toLowerCase();
result.push(`[${type.domain.name}.${type.name}]: ${domainName}.md#type-${domainName}${name} "${type.domain.name}.${type.name}"`);
result.push(`[${type.domain.name}.${type.name}]: ${domainName}.html#type-${domainName}-${name} "${type.domain.name}.${type.name}"`);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this breaks md links

Comment thread parse.js
function html(schema) {
for (const domain of schema.domains) {
const md = fs.readFileSync(`docs/md/${domain.name.toLowerCase()}.md`, 'utf8');
debugger;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debugging Node just because we can 👍

@paulirish

Copy link
Copy Markdown
Author

Lol

@sidbln sidbln left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

Comment thread package.json
@@ -0,0 +1,6 @@
{
"dependencies": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bitte gern geschehen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants