https://www.dendron.so/ logo
Join Discord
Powered by
# questions
  • f

    flip

    11/15/2021, 4:06 PM
    OK - makes sense. I tend to try new things when they come out, and then don’t pay close enough attention to things like the blog, notes, etc etc.
  • u

    user

    11/15/2021, 4:28 PM
    is there a reason why folders arent used for heirarchy
  • t

    Tychronos

    11/15/2021, 4:36 PM
    I think there are a few reasons, but the most salient to me is that a file can serve as both a file and a folder, whereas a folder can only serve as a folder. what if you started out with a note called
    ideas
    , 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 something
  • t

    Tychronos

    11/15/2021, 4:41 PM
    I'm working through my own solution for this right now. What I've done is kept 2 separate repos: main and publishable, and host them on Github. main is private, and publishable is public. the main repo holds all the source notes, and the publishable repo just links to the main repo. the only purpose of the publishable repo is to build the nextjs site from source notes in the main repo. What I'm just wrapping up now is setting it up so the publishable repo will generate a new Nextjs build every 24hr and deploy to Github Pages.
  • u

    user

    11/15/2021, 5:00 PM
    Is there an "approved" way to customize the styling of the nextjs build?
  • b

    butternut

    11/15/2021, 5:12 PM
    Thanks for your answers! What do you mean by "links to the main repo" , how do you do it ?
  • t

    Tychronos

    11/15/2021, 5:30 PM
    I do something like this in the
    dendron.yml
    config file of the publishable repo:
    Copy code
    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 repo
  • g

    grndstt

    11/15/2021, 6:06 PM
    Hi all. Passing (with some delay ) all my dendrons to the new publishing methods. It worked for all of them but one. I get an error at the Prep notes for publish step on the github CI. I do not get this for other repo. Also I can build this dendron and publish locally with apparently no problem using
    dendron publish dev
    . Here is the message returned by the CI
    k
    • 2
    • 15
  • g

    grndstt

    11/15/2021, 6:08 PM
    Copy code
    Run 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.
  • g

    grndstt

    11/15/2021, 6:08 PM
    Any clue or directions ? These message are a bit obscure to me :/ Thank you
  • b

    Bassmann

    11/15/2021, 6:50 PM
    Not totally sure what you want to achieve but here is my approach to this: I have different vaults depending on privacy requirements in the same workspace: a local one for sensitive stuff (work related) I don't want to share and two that are remote vaults in different different GitHub repos (my knowledge base and a journal). So I can sync my knowledge base across work and private machines whereas the work stuff remains local to my work machine (with a backup of course). For publishing there are settings that configure which vault to publish that I don't know by heart.
  • b

    butternut

    11/15/2021, 7:28 PM
    Thanks for the insight, I want to accomplish something similar but I was a bit confuse on how structure myself and how to reflect this structure in Dendron. I will give it another try with your insight and @User response. Thanks for the help!
  • t

    Tychronos

    11/15/2021, 7:47 PM
    I am trying to set up a Github Action to build a Nextjs deployment and trigger an update with Github Pages. I have a private repo and a public repo, with the public repo being a simple reference to the particular vault(s) in the private main repo. Because of the relative path reference, I set up the Action to checkout both repos. Then I attempt to build the site by running the following command:
    Copy code
    npx @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.
    k
    • 2
    • 3
  • t

    Tychronos

    11/15/2021, 7:47 PM
    output of dendron publish export command:
  • k

    kevins8

    11/15/2021, 7:59 PM
    publishing-error
  • j

    johndendron29

    11/15/2021, 9:53 PM
    Currently, we do not allow custom theming of either the preview or the published site.
  • k

    kevins8

    11/15/2021, 9:55 PM
    this is a bug on our end (the CLI tries to close the running server but when you pass in a port, its not able to). doesn't affect the running query but the error message is misleading
  • k

    kevins8

    11/15/2021, 9:55 PM
    will fix this!
  • b

    Bo Vandenberg [utc -5]

    11/16/2021, 12:42 AM
    Who, what, where, how is 'PARA'? In 'PARA with Dendron' you talk about it like everyone knows what you mean but I don't. Is it a schema? Where is it drawn from?
  • t

    Tychronos

    11/16/2021, 12:46 AM
    https://fortelabs.co/blog/para/
  • t

    Tychronos

    11/16/2021, 12:48 AM
    gh action to deploy single vault of multi vault setup
  • b

    Bo Vandenberg [utc -5]

    11/16/2021, 12:55 AM
    Thank you!
  • a

    aleksey

    11/16/2021, 2:32 AM
    Question to the Dendron team: Do you guys use any other project/task/knowledge management apps or do you track everything in Dendron?
  • s

    SeriousBug

    11/16/2021, 2:34 AM
    It's all in Dendron. We also use GitHub issues, Airtable, and Google Docs for various things but we usually use Import/Export pods to add them to Dendron too
  • a

    aleksey

    11/16/2021, 2:45 AM
    Thanks! I'm taking BASB and everyone there seems to be using multiple apps to manage their notes and tasks saying that no single app can is sufficient for all that. I guess it depends on your workflow and how you manage things, but I would prefer to keep all the things somewhat centralized.
  • k

    kevins8

    11/16/2021, 3:05 AM
    part of the workflow with pods is that dendron can be your central source of truth and you can still use the right tool for the job. for example, we use google docs to run our meetings because collaborative editing is much better there. we import the notes back into dendron after the session
  • k

    kevins8

    11/16/2021, 3:06 AM
    for todos, we use scratch notes and are switching over to task notes but at the same time, are going to sync those notes to airtable so we can use the kanban board and filters to manage tasks
  • k

    kevins8

    11/16/2021, 3:07 AM
    see https://github.com/dendronhq/dendron/discussions/1655
  • k

    kevins8

    11/16/2021, 3:08 AM
    long term, dendron isn’t going to be the one tool that does all the things but it can be the one thing that lets you organize, reference, and make use of all the things 🙂
  • a

    aleksey

    11/16/2021, 3:17 AM
    Thank you for the link! Syncing tasks with Aritable sounds interesting and I would love to know more how that can work.
1...451452453...757Latest