flip
11/15/2021, 4:06 PMuser
11/15/2021, 4:28 PMTychronos
11/15/2021, 4:36 PMideas
, but eventually that note got bigger, and you had business-ideas
, remodel-ideas
etc. now you can take text from ideas.md
and put it in sub-notes. If it was folder based, we wouldn't be able to do that, since ideas
would have been a folder. you'd have to have an index.md
or somethingTychronos
11/15/2021, 4:41 PMuser
11/15/2021, 5:00 PMbutternut
11/15/2021, 5:12 PMTychronos
11/15/2021, 5:30 PMdendron.yml
config file of the publishable repo:
workspace:
dendronVersion: 0.67.1
vaults:
-
fsPath: ../main/tech
name: tech
so here, it is only the tech vault from my main repo that I want to be publicly shown. When I run the build command from the publishable repo, it will build the nextjs site using the source notes from the main repogrndstt
11/15/2021, 6:06 PMdendron publish dev
. Here is the message returned by the CIgrndstt
11/15/2021, 6:08 PMRun cd .next && yarn export && cd ..
yarn run v1.22.17
$ next build && next export
info - Loaded env from /home/runner/work/dendron-global/dendron-global/.next/.env.production
info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
info - Checking validity of types...
warn - No ESLint configuration detected. Run next lint to begin setup
> Build error occurred
TypeError: Cannot read property 'id' of undefined
at /home/runner/work/dendron-global/dendron-global/.next/.next/server/pages/notes/[id].js:36:150
at /home/runner/work/dendron-global/dendron-global/.next/node_modules/lodash/lodash.js:10661:37
at arrayFilter (/home/runner/work/dendron-global/dendron-global/.next/node_modules/lodash/lodash.js:596:11)
at Function.reject (/home/runner/work/dendron-global/dendron-global/.next/node_modules/lodash/lodash.js:9817:14)
at getStaticPaths (/home/runner/work/dendron-global/dendron-global/.next/.next/server/pages/notes/[id].js:36:61)
at buildStaticPaths (/home/runner/work/dendron-global/dendron-global/.next/node_modules/next/dist/build/utils.js:472:37)
at /home/runner/work/dendron-global/dendron-global/.next/node_modules/next/dist/build/utils.js:615:125
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Span.traceAsyncFn (/home/runner/work/dendron-global/dendron-global/.next/node_modules/next/dist/telemetry/trace/trace.js:60:20) {
type: 'TypeError'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
grndstt
11/15/2021, 6:08 PMBassmann
11/15/2021, 6:50 PMbutternut
11/15/2021, 7:28 PMTychronos
11/15/2021, 7:47 PMnpx @dendronhq/dendron-cli publish export --wsRoot publishable --target github
The output of this command is in the uploaded file below
It appears that files in data/
(json, html etc) don't get updated when running this command (in the Github Actions Runner VM), so I would assume that the error is preventing the actual writing from happening.
To be clear, I have done all of these steps on my local machine and it (the publish export command) works, resulting in updated html/json files.Tychronos
11/15/2021, 7:47 PMkevins8
11/15/2021, 7:59 PMjohndendron29
11/15/2021, 9:53 PMkevins8
11/15/2021, 9:55 PMkevins8
11/15/2021, 9:55 PMBo Vandenberg [utc -5]
11/16/2021, 12:42 AMTychronos
11/16/2021, 12:46 AMTychronos
11/16/2021, 12:48 AMBo Vandenberg [utc -5]
11/16/2021, 12:55 AMaleksey
11/16/2021, 2:32 AMSeriousBug
11/16/2021, 2:34 AMaleksey
11/16/2021, 2:45 AMkevins8
11/16/2021, 3:05 AMkevins8
11/16/2021, 3:06 AMkevins8
11/16/2021, 3:07 AMkevins8
11/16/2021, 3:08 AMaleksey
11/16/2021, 3:17 AM