dendron icon indicating copy to clipboard operation
dendron copied to clipboard

Publishing: `siteRootDir` ignored.

Open bj0 opened this issue 3 years ago • 2 comments
trafficstars

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

  • [ ] Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • [ ] Lookup. Dendron's Lookup Command
  • [ ] Views. Dendron Preview, Tree View, Side Panels in the UI
  • [ ] Schema. Dendron Schemas
  • [ ] Pod. Data import from / export to Dendron
  • [X] Publish. External Site Publish
  • [ ] Markdown. Markdown features, such as syntax support and features

Describe the bug

The documentation for siteRootDir is here: https://wiki.dendron.so/notes/h5afVt8ss9e4wXye78oUi

Adding this option to the publishing config has no effect, it doesn't even create the output directory. All of the generated output files are left in .next/out.

To Reproduce

Add siteRootDir=docs to publishing config and run npx dendron publish export.

Expected behavior

A ./docs directory containing the static site.

Desktop (please complete the following information)

  • OS: Ubuntu
  • Browser (if with published websites; include version): n/a
  • Versions (all that apply to bug):
    • Dendron Extension: 0.108.0
    • VS Code version: 1.70.1
    • Dendron CLI: 0.108.0

bj0 avatar Aug 18 '22 23:08 bj0

Thanks @bj0 for reporting the issue.

@kevinslin - was siteRootDir intended to be the output dir for export, or just the directory where we look for the content output?

All of our publishing automation have things scripted similar to the following:

[[ -d ../docs ]] && rm -r ../docs
mv out ../docs 

jonathanyeung avatar Aug 19 '22 10:08 jonathanyeung

I've run into the same trouble with this option, as it doesn't seem to work as intended for me either.

Set the directory where your website will be built. This path is relative to your workspace root.

I generally have to do my own post-build steps where I'm moving the contents of the built directory elsewhere.

ScriptAutomate avatar Aug 28 '22 18:08 ScriptAutomate