docgen-tool 6.0.2 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -15,7 +15,12 @@ export const PdfToggleButton = ({ onClick }: PdfToggleButtonProps) => {
15
15
 
16
16
  const onPdfToggle = () => {
17
17
  if (pdfVisible) {
18
- router.history.back();
18
+ /*
19
+ Would be nice to navigate to the last non-PDF page user was on, but
20
+ browser history makes that hard to find reliably (last page may not
21
+ exist or could be the PDF page itself). #152
22
+ */
23
+ router.navigate({ to: '/' });
19
24
  } else {
20
25
  router.navigate({ to: '/pdf' });
21
26
  }
package/dist/cli/cli.js CHANGED
@@ -283,7 +283,7 @@ const basePath = process.env.BASE_PATH || "/", generate = async (command, mode)
283
283
  }, scaffold = async (command) => {
284
284
  const inputDir = findTemplateDir(import.meta.dirname), outputDir = path.normalize(command.output + "/"), verbose = command.verbose === true;
285
285
  console.log(pico.green("Creating scaffold template directory")), await copyDirectory(inputDir, outputDir, verbose);
286
- }, version = "6.0.2";
286
+ }, version = "6.0.3";
287
287
  if (program.version(version).usage("[command] [--option]"), program.command("scaffold").usage("[--option]").description("create a template input directory").option("-o, --output [path]", "path to the output directory (default: ./)", "./").option("-v, --verbose", "show verbose output including detailed errors").action((command) => {
288
288
  scaffold(command);
289
289
  }), program.command("dev").usage("[--option]").description("create a static website from an input directory").option("-i, --input [path]", "path to the input directory [default: ./]", "./").option("-o, --output [path]", "path to the output directory [default: ./output]", "./output").option("-p, --pdf", "create a PDF document").option("-s, --set-version [version]", "override parameters.version (useful for build tools) [default: false]", false).option("-R, --set-release-date [date]", "override parameters.date (useful for build tools) [default: false]", false).option("-v, --verbose", "show verbose output including detailed errors").action((command) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docgen-tool",
3
3
  "type": "module",
4
- "version": "6.0.2",
4
+ "version": "6.0.3",
5
5
  "description": "A tool for creating HTML and PDF documentation",
6
6
  "bin": "./dist/cli/cli.js",
7
7
  "files": [