Skip to content

Commit

Permalink
Try more things that don’t work
Browse files Browse the repository at this point in the history
  • Loading branch information
irskep committed Aug 28, 2024
1 parent 26332b7 commit 961a422
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.djot
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ Djockey is a powerful documentation generator for Markdown and [Djot](https://dj

→→→ [Read the docs here!](https://steveasleep.com/djockey/) ←←←

Or [browse them on GitHub](./index).
Or [browse them on GitHub](./index).

[linking to myself][README]
2 changes: 1 addition & 1 deletion docs/djockey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ output_dir:
gfm: out/gfm

additional_files_to_render_in_place_as_markdown:
- ../../README.md
- ../../README.djot

project_info:
version: 0.0.2
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export function readConfig(path_: string): DjockeyConfig {
}

function absify(rootPath: string, path_: string): string {
if (path.isAbsolute(path_)) return path_;
return `${rootPath}/${path_}`;
if (path.isAbsolute(path_)) return path.normalize(path_);
return path.normalize(`${rootPath}/${path_}`);
}

export function resolveConfig(
Expand Down
4 changes: 3 additions & 1 deletion src/renderers/gfmRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ export class GFMRenderer implements DjockeyRenderer {
context: Record<string, unknown>;
}) {
const { config, nj, doc } = args;
const outputPath = `${config.output_dir.gfm}/${doc.relativePath}.md`;
const outputPath = path.normalize(
`${config.output_dir.gfm}/${doc.relativePath}.md`
);
console.log("Rendering", outputPath);
ensureParentDirectoriesExist(outputPath);

Expand Down

0 comments on commit 961a422

Please sign in to comment.