Giter Club home page Giter Club logo

digital-garden's People

Contributors

canburaks avatar livicomturkiye avatar seabluetours avatar tuanmanhcao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

digital-garden's Issues

Accessing the instance fails with "TypeError: filePath.replace(...).replaceAll is not a function"

I installed this today and keep getting this error when accessing the VM on port 3000.
https://i.imgur.com/8j1PSUk.png

This is running on ubuntu 22.04, after cloning the repo and installing yarn as described in the guide.

Since google showed some results about "browser issue", I tried it with Firefox, Waterfox and Edge, the issue was the same on all of them. I'd be glad to provide more info too, but sadly i know nothing about javascript/Node etc. so just let me know what to post.

Adding support for callouts

Hi there, I thought that adding support for callouts might be a cool addition to the existing website template, especially since there's one at the top of each and every page so it shouldn't be to hard to implement.

Well, at least that's what I think with my zero knowledge.

Otherwise, thanks again for sharing that project, it is really awesome !

Support for tags

Hi,

are you planning to add support for tags on Graph?
By Tags I mean the hashtag words.

Screenshot 2023-05-21 at 22 45 10

Thanks

Docker support

I'm working in the company with network firewalls. As a result, I can't start project locally (don't have proxy).
But I can run docker images from docker hub.
Is it possible to build a docker image which won't need internet access?

[posts]$ yarn && yarn run dev
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/stylis/-/stylis-4.0.13.tgz: tunneling socket could not be established, statusCode=403".
info If you think this is a bug, please open a bug report with the information provided in "/media/linuxSharedDisk/src/open-source/digital-garden-main/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...

Server and notes not rendering

Hello there,

I just built the server on a raspberry pi 4 following the guide and this is what I got from the console log
image

I then tried to reach port 3000 but it does not show anything.
Any idea why?

Netlify Build failed

I used your repozitory as a copy with my MD files.
I got this build log with errors:

10:00:56 PM: build-image version: 3b96229e32b19cdf63f20dc1fc9331cd240c2d01 (focal)
10:00:56 PM: buildbot version: 3b96229e32b19cdf63f20dc1fc9331cd240c2d01
10:00:56 PM: Fetching cached dependencies
10:00:56 PM: Failed to fetch cache, continuing with build
10:00:56 PM: Starting to prepare the repo for build
10:00:56 PM: No cached dependencies found. Cloning fresh repo
10:00:56 PM: git clone --filter=blob:none https://github.com/tomashak/obsidian_digital_garden
10:00:56 PM: Preparing Git Reference refs/heads/main
10:00:58 PM: Starting to install dependencies
10:00:58 PM: Python version set to 3.8
10:00:59 PM: Attempting Ruby version 2.7.2, read from environment
10:00:59 PM: Using Ruby version 2.7.2
10:01:00 PM: Started restoring cached go cache
10:01:00 PM: Finished restoring cached go cache
10:01:00 PM: go version go1.19.10 linux/amd64
10:01:01 PM: Using PHP version 8.0
10:01:02 PM: v18.16.0 is already installed.
10:01:03 PM: Now using node v18.16.0 (npm v9.5.1)
10:01:03 PM: Enabling Node.js Corepack
10:01:03 PM: Started restoring cached build plugins
10:01:03 PM: Finished restoring cached build plugins
10:01:03 PM: Started restoring cached corepack dependencies
10:01:03 PM: Finished restoring cached corepack dependencies
10:01:03 PM: Started restoring cached yarn cache
10:01:03 PM: Finished restoring cached yarn cache
10:01:03 PM: No yarn workspaces detected
10:01:03 PM: Started restoring cached node modules
10:01:03 PM: Finished restoring cached node modules
10:01:04 PM: Installing npm packages using Yarn version 1.22.19
10:01:04 PM: yarn install v1.22.19
10:01:04 PM: [1/4] Resolving packages...
10:01:04 PM: [2/4] Fetching packages...
10:01:26 PM: [3/4] Linking dependencies...
10:01:26 PM: warning "@emotion/react > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
10:01:26 PM: warning "@emotion/react > @emotion/babel-plugin > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
10:01:26 PM: warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
10:01:39 PM: [4/4] Building fresh packages...
10:01:39 PM: Done in 35.16s.
10:01:39 PM: npm packages installed using Yarn
10:01:40 PM: Install dependencies script success
10:01:40 PM: Starting build script
10:01:41 PM: Detected 1 framework(s)
10:01:41 PM: "next" at version "12.1.0"
10:01:41 PM: Section completed: initializing
10:01:42 PM: โ€‹
10:01:42 PM: Netlify Build
10:01:42 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
10:01:42 PM: โ€‹
10:01:42 PM: โฏ Version
10:01:42 PM: @netlify/build 29.12.1
10:01:42 PM: โ€‹
10:01:42 PM: โฏ Flags
10:01:42 PM: baseRelDir: true
10:01:42 PM: buildId: 6484d67609e5ab1baf7796b8
10:01:42 PM: deployId: 6484d67609e5ab1baf7796ba
10:01:42 PM: โ€‹
10:01:42 PM: โฏ Current directory
10:01:42 PM: /opt/build/repo
10:01:42 PM: โ€‹
10:01:42 PM: โฏ Config file
10:01:42 PM: No config file was defined: using default values.
10:01:42 PM: โ€‹
10:01:42 PM: โฏ Context
10:01:42 PM: production
10:01:43 PM: โ€‹
10:01:43 PM: โฏ Installing plugins
10:01:43 PM: - @netlify/[email protected]
10:01:51 PM: โ€‹
10:01:51 PM: โฏ Using Next.js Runtime - v4.37.4
10:01:53 PM: โ€‹
10:01:53 PM: @netlify/plugin-nextjs (onPreBuild event)
10:01:53 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
10:01:53 PM: โ€‹
10:01:53 PM: No Next.js cache to restore.
10:01:53 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
10:01:53 PM: โ€‹
10:01:53 PM: (@netlify/plugin-nextjs onPreBuild completed in 19ms)
10:01:53 PM: โ€‹
10:01:53 PM: Build command from Netlify app
10:01:53 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
10:01:53 PM: โ€‹
10:01:53 PM: $ yarn build
10:01:53 PM: yarn run v1.22.19
10:01:53 PM: $ rm -rf graph-data.json && next build
10:01:54 PM: warn - SWC minify release candidate enabled. https://nextjs.org/docs/messages/swc-minify-enabled
10:01:54 PM: warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
10:01:54 PM: Browserslist: caniuse-lite is outdated. Please run:
10:01:54 PM: npx browserslist@latest --update-db
10:01:54 PM: Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
10:01:54 PM: info - Checking validity of types...
10:01:54 PM: warn - No ESLint configuration detected. Run next lint to begin setup
10:01:54 PM: info - Creating an optimized production build...
10:01:55 PM: Browserslist: caniuse-lite is outdated. Please run:
10:01:55 PM: npx browserslist@latest --update-db
10:01:55 PM: Why you should do it regularly:
10:01:55 PM: https://github.com/browserslist/browserslist#browsers-data-updating
10:02:04 PM: info - Compiled successfully
10:02:04 PM: info - Collecting page data...
10:02:06 PM: Error: ENOENT: no such file or directory, lstat '/opt/build/repo/graph-data.json'
10:02:06 PM: at Object.lstatSync (node:fs:1593:3)
10:02:06 PM: at Object.isFile (/opt/build/repo/.next/server/chunks/403.js:264:62)
10:02:06 PM: at constructGraphData (/opt/build/repo/.next/server/chunks/403.js:751:65)
10:02:06 PM: at /opt/build/repo/.next/server/pages/index.js:69:100 {
10:02:06 PM: errno: -2,
10:02:06 PM: syscall: 'lstat',
10:02:06 PM: code: 'ENOENT',
10:02:06 PM: path: '/opt/build/repo/graph-data.json'
10:02:06 PM: }
10:02:07 PM: info - Generating static pages (0/12)
10:02:11 PM: info - Generating static pages (3/12)
10:02:11 PM: Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
10:02:11 PM: Error: ENOENT: no such file or directory, open '/opt/build/repo/posts/index.md'
10:02:11 PM: at Object.openSync (node:fs:601:3)
10:02:11 PM: at Object.readFileSync (node:fs:469:35)
10:02:11 PM: at Object.readFileSync (/opt/build/repo/.next/server/chunks/403.js:290:58)
10:02:11 PM: at getSinglePost (/opt/build/repo/.next/server/chunks/403.js:704:85)
10:02:11 PM: at getStaticProps (/opt/build/repo/.next/server/pages/index.js:72:92)
10:02:11 PM: at renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:465:26)
10:02:11 PM: at async /opt/build/repo/node_modules/next/dist/export/worker.js:269:36
10:02:11 PM: at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:75:20)
10:02:11 PM: info - Generating static pages (6/12)
10:02:11 PM: info - Generating static pages (9/12)
10:02:12 PM: info - Generating static pages (12/12)
10:02:12 PM: > Build error occurred
10:02:12 PM: Error: Export encountered errors on following paths:
10:02:12 PM: /
10:02:12 PM: at /opt/build/repo/node_modules/next/dist/export/index.js:498:19
10:02:12 PM: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
10:02:12 PM: at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:75:20)
10:02:12 PM: at async /opt/build/repo/node_modules/next/dist/build/index.js:1024:17
10:02:12 PM: at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:75:20)
10:02:12 PM: at async /opt/build/repo/node_modules/next/dist/build/index.js:898:13
10:02:12 PM: at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:75:20)
10:02:12 PM: at async Object.build [as default] (/opt/build/repo/node_modules/next/dist/build/index.js:82:25)
10:02:12 PM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
10:02:12 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
10:02:12 PM: โ€‹
10:02:12 PM: "build.command" failed
10:02:12 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
10:02:12 PM: โ€‹
10:02:12 PM: Error message
10:02:12 PM: Command failed with exit code 1: yarn build (https://ntl.fyi/exit-code-1)
10:02:12 PM: โ€‹
10:02:12 PM: Error location
10:02:12 PM: In Build command from Netlify app:
10:02:12 PM: yarn build
10:02:12 PM: โ€‹
10:02:12 PM: Resolved config
10:02:12 PM: build:
10:02:12 PM: command: yarn build
10:02:12 PM: commandOrigin: ui
10:02:12 PM: environment:
10:02:12 PM: - NEXT_PRIVATE_TARGET
10:02:12 PM: publish: /opt/build/repo/.next
10:02:12 PM: publishOrigin: ui
10:02:12 PM: plugins:
10:02:12 PM: - inputs: {}
10:02:12 PM: origin: ui
10:02:12 PM: package: '@netlify/plugin-nextjs'
10:02:13 PM: Caching artifacts
10:02:13 PM: Started saving node modules
10:02:13 PM: Finished saving node modules
10:02:13 PM: Started saving build plugins
10:02:13 PM: Finished saving build plugins
10:02:13 PM: Started saving corepack cache
10:02:13 PM: Finished saving corepack cache
10:02:13 PM: Started saving yarn cache
10:02:16 PM: Finished saving yarn cache
10:02:16 PM: Started saving pip cache
10:02:16 PM: Finished saving pip cache
10:02:16 PM: Started saving emacs cask dependencies
10:02:16 PM: Finished saving emacs cask dependencies
10:02:16 PM: Started saving maven dependencies
10:02:16 PM: Finished saving maven dependencies
10:02:16 PM: Started saving boot dependencies
10:02:16 PM: Finished saving boot dependencies
10:02:16 PM: Started saving rust rustup cache
10:02:16 PM: Finished saving rust rustup cache
10:02:16 PM: Started saving go dependencies
10:02:16 PM: Finished saving go dependencies
10:02:17 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:02:17 PM: Failing build: Failed to build site
10:02:17 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:02:17 PM: Finished processing build request in 1m21.644s

Build failed on Windows..

Hi,
I'm on Windows, and I see

``
C:\D\GitHub\digital-garden>npm run dev

[email protected] dev
next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn - SWC minify release candidate enabled. https://nextjs.org/docs/messages/swc-minify-enabled
event - compiled client and server successfully in 1054 ms (137 modules)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
wait - compiling / (client and server)...
event - compiled client and server successfully in 2.4s (1043 modules)
wait - compiling /note/[id]...
Failed: CANNOT Parseundefined
Failed: CANNOT Parseundefined
Failed: CANNOT Parseundefined
Failed: CANNOT Parseundefined
``

Would you be willing to offer some pointers?

Warmly,
Ben

How can i configure it to display well?

code in obsidian:
for example:
I use "seamless" to display well in obsidian

>[!installation]
> ![[Install Docker Engine on Ubuntu|seamless]]  # add "seamless"


How can i display well in digital-garden rather than:

cannot run on my local machine

Hi there.

On step 4
yarn && yarn run dev

i get this error:

00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.

I'll love to have my Obsidian .md files distributed through a www browser.
Thank you

Support for community extensions such as Kanban?

I'm working on an OSS project and would love to publish working notes to build in public for the community to consume. However the rendered markdown is not then same when things like Kanban are not supported :( Do you have any recommendations or plans to support it in digital garden?

Build fails

Hi,

I have troubles with getting it started. I am getting:

..Error: ENOENT: no such file or directory
lstat 'MY_REPO/digital-garden/graph-data.json'
at Object.lstatSync (node:fs:1529:3)

I have just copies my md files to posts folder. Do they need to have a special content for publishing?

Thanks for hints

Adjusting image length is not working

Hi there, I love your project, it is probably the simpliest yet most beautiful obsidian publish alternative.

But I can't get around the following problem : I can't adjust image size.

Using ![[paypal_logo.png|25x25]] is not working.
But ![[paypal_logo.png]] is fine, with the image inside public/images of course.

Any idea how to fix this ? Thanks in advance !

It doesnt works for markdown Table

Hi. I just found out it doesnt work for table.

And in demo website I didnt find a table for demonstrating.

Can I ask Is that problem due to my writing or this function is under developing?

Clone or Fork?

I'd like to use digital-garden via netlify. I've cloned this repository as instructed. But what do I need to do to make the repository visible to Netlify? Do I push my local repository to something of my own on github somehow? I'm really not familiar with git, so I am probably missing something really basic.

Roadmap

Hi,

I have seen Known Issues in the readme file. Is it a list of things to do? Are you planning maintanance? Maybe a TODO list of possible improvements for contributors could be added to the Readme? I'd happily contribute.

FR: external links

Hi,

I think external links should be marked, for example with a arrow at the end indicating that this link will take you out.

This is a pretty important thing, at least for me.

Alternatively make at least a different styling for internal and external.
Thanks!

Canvas support and minor improvements

I was recently browsing for an opensource solution to publish my obsidian wiki with canvases and finally came up to taking your https://github.com/TuanManhCao/digital-garden and updating it with https://github.com/zachdoty/BrainPress ideas to enable canvases

I forked digital-garden and made my own solution (https://github.com/mrdrprofuroboros/digital-garden) which serves me well, but is definitely an ad-hog for my purposes, so I'd like to prepare a normal PR for everybody.

This is a proposal list for what I've done in my fork and I'd like to involve you in prioritization and discussion:
1st priority:

  • nextjs 13 (needed for rectflow for canvases)
  • caching (current backend architecture reads filesystem too many times. it would be much better to rewrite it a bit more accurate, but a simple cache in couple of places speeds up building a magnitude)
  • gfm (github flavour markdown, external link were not recognized in current build)
  • customizable index page (I need it to be a canvas page in my project and I'd suggest making a config file which will be parametrizing the index page name

2nd priority:

  • docker (I'm deploying it to a vps with docker, made a docker build + compose with traefik proxy for auth if needed)
  • canvases support (with reactflow) - needs discussion on the essential steps - supporting the whole functionality of obsidian would be too much work, needs prioritization here. my own request is rather simple - I need a link-type cards (without iframe previews) that can be connected with simple arrows, have colors. each card has a href link to a corresponding markdown page
  • I'd suggest changing slug system - current one is a bit hacky and seem too bulky + the urls aren't pretty enough.
  • strip .md extension from file names in a tree
  • update favicon =)

3rd priority:

  • ideally - split tree view and pages to be separately loaded to minimize page size (I have several hundreds of pages and it gets fat pretty fast)
  • full typescript migration
  • further work on canvas support (files, iframes)
  • search! (https://github.com/turtton/volglass has a search and it is a great helper)
  • dark mode (not so essential for me, but a nice-to have)

what do you think about it? if there is something more important you'd suggest including in that list?

when going to new page through sidebar, graph doesn't update

When trying the sample obsidian docs in mindstone, i noticed the following inconsistancy

  • when I go to a new page through a link in the sidebar, the graph doesn't update.
  • when i go to another page by clicking a link in the content of the current page, the graph does update.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.