Git Product home page Git Product logo

digitalgarden's People

Contributors

12-vide avatar 1244919208 avatar 1ardotno avatar anantshri avatar bayang avatar codyburleson avatar dependabot[bot] avatar gmuller avatar idasofiegrude avatar jay-tau avatar keang avatar luke-zhang-04 avatar oleeskild avatar ransurf avatar shmuga avatar stalegjelsten avatar uroybd 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

digitalgarden's Issues

I don't push the file ? why?

10:32:50 AM: 1. build.command from netlify.toml
10:32:50 AM: ────────────────────────────────────────────────────────────────
10:32:50 AM: ​
10:32:50 AM: $ npm install && npm run build
10:32:51 AM: up to date, audited 511 packages in 657ms
10:32:51 AM: 85 packages are looking for funding
10:32:51 AM: run npm fund for details
10:32:51 AM: 8 vulnerabilities (1 moderate, 6 high, 1 critical)
10:32:51 AM: Some issues need review, and may require choosing
10:32:51 AM: a different dependency.
10:32:51 AM: Run npm audit for details.
10:32:52 AM: > [email protected] build
10:32:52 AM: > npm-run-all get-theme build:*
10:32:52 AM: > [email protected] get-theme
10:32:52 AM: > node src/site/get-theme.js
10:32:52 AM: > [email protected] build:eleventy
10:32:52 AM: > cross-env ELEVENTY_ENV=prod NODE_OPTIONS=--max-old-space-size=4096 eleventy
10:32:53 AM: [11ty] Problem writing Eleventy templates: (more in DEBUG output)
10:32:53 AM: [11ty] Output conflict: multiple input files are writing to dist/index.html. Use distinct permalink values to resolve this conflict.
10:32:53 AM: [11ty] 1. ./src/site/notes/对象之间的关系.md
10:32:53 AM: [11ty] 2. ./src/site/index.njk (via DuplicatePermalinkOutputError)
10:32:53 AM: [11ty]
10:32:53 AM: [11ty] Original error stack trace: (Repeated output has been truncated…)
10:32:53 AM: [11ty] at TemplateMap.checkForDuplicatePermalinks (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateMap.js:799:13)
10:32:53 AM: [11ty] at TemplateMap.cache (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateMap.js:484:10)
10:32:53 AM: [11ty] at processTicksAndRejections (node:internal/process/task_queues:96:5)
10:32:53 AM: [11ty] at async TemplateWriter._createTemplateMap (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateWriter.js:330:5)
10:32:53 AM: [11ty] at async TemplateWriter.generateTemplates (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateWriter.js:360:5)
10:32:53 AM: [11ty] at async TemplateWriter.write (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateWriter.js:407:23)
10:32:53 AM: [11ty] at async Eleventy.executeBuild (/opt/build/repo/node_modules/@11ty/eleventy/src/Eleventy.js:1160:13)
10:32:53 AM: [11ty] Copied 7 files / Wrote 0 files in 0.32 seconds (v2.0.0)
10:32:53 AM: ERROR: "build:eleventy" exited with 1.
10:32:53 AM: ​
10:32:54 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:32:53 AM: "build.command" failed
10:32:53 AM: ────────────────────────────────────────────────────────────────
10:32:53 AM: ​
10:32:53 AM: Error message
10:32:53 AM: Command failed with exit code 1: npm install && npm run build (https://ntl.fyi/exit-code-1)
10:32:53 AM: ​
10:32:53 AM: Error location
10:32:53 AM: In build.command from netlify.toml:
10:32:53 AM: npm install && npm run build
10:32:53 AM: ​
10:32:53 AM: Resolved config
10:32:53 AM: build:
10:32:53 AM: command: npm install && npm run build
10:32:53 AM: commandOrigin: config
10:32:53 AM: publish: /opt/build/repo/dist
10:32:53 AM: publishOrigin: config
10:32:53 AM: functionsDirectory: /opt/build/repo/netlify/functions
10:32:53 AM: redirects:
10:32:54 AM: - from: /api/*
status: 200
to: /.netlify/functions/:splat
- from: /*
status: 404
to: /404
redirectsOrigin: config
Caching artifacts

Transclusions render metadata under title

Problem

Since the transclusion has an inserted h1 title at the top, the metadata is inserted below, and is rendered in the resultant note.

Proposed Solution

Strip away the metadata before inserting it into the transclusion. Customisation over how/whether the title is rendered as a heading would also be helpful as an added bonus.

Attachments

image
image


(Sorry that I'm launching issues at you like hot potatoes - this is a brilliant tool, and please let me know if I'm being overly feature-hungry!)

Enhanced Referencing

I have done some UI tweaks on my site regarding references I think others might find useful.

Whenever we click on an embed link for transcluded files, it takes us to the relevant section if the note has been published using URL hash. I've implemented a style to highlight the section. See this example, notice the dashed section: https://topobon.utsob.me/personal/reading/notes-and-highlights/the-poetry-of-zen-by-sam-hamill-j-p-seaton/#e34d1e

Also, now, any block or header with hash is interactive. Users can copy the URL for that section by double-clicking.

If we agree, we can add this.

mermaid: can its javascript be made optional and other thoughts?

As of now mermaid.js is the most heavy weight javascript which is a renderblocking javascript. I have couple of thoughts:

  1. is there a way we can check for the presence of mermaid code in the document and the only enable the inclusion of mermaid javascript.
  2. Alternatively should we make these features as like a toggle within the interface of plugin as advance features if someone wants to optimize the output.

there are a few items which i consider candidate for this.

  1. RSS Feed
  2. Mermaid
  3. MathJax
  4. forecgraph js : In case someone wants to shut down graphs all together. (I know its the cool thing but there could be advance usage)

Bigger Question would be i know you want to keep it plug and play do you want to go this deep in the customizability.

No cloudflare pages compatibility

-Cloudflare pages has some specific limitations with routing through the use of 'page-functions' that vercel does not have.
-The vercel search code is not compatible for page-functions and needs to be modified.
-404/index.html needs to be duplicated to 404.html at the distribution root for cloudflare?

Also, some configuration limitations

Timestamps

I think, support for timestamps can be a great enhancment since it's a garden, and we want to see things grow.

To achieve that we can have following settings for maximum flexibility:

  1. A global toggle to show or hide timestamps
  2. 2 fields to select which keys to be used from the frontmatter for updated and created timestamps.

If the user choose to show the timestamps, we will first attempt to get the timestamps from the frontmatter, in that doesn't exist, then from file's created and updated dates.

Wrong links to the notes containing dots in the name

I guess it's because of the dot in a note's name, I am getting one link being interpreted wrong recently.
In my vault the path to the note is Software/Obsidian/Obsidian.md
The real URL of the published note is ...netlify.app/software/obsidian/obsidian-md/
But the links' URL referencing this note in the garden is ...netlify.app/notes/software-obsidian-obsidian-md which is obviously wrong

PS. Sorry, posted this issue in the template issues by accident
PS2. Update, the problem occurs if a note's name contains ".md". Can be disregarded then I think.
Thank you

Wikilinks display names and sizes not implemented

Problem

If you have a link such as ![[cat.jpg|500]] or [[A very long file name|myfile]], they do not display the same as in Obsidian.

Proposed Solution

  1. Check if the link contains an unescaped pipe character - if yes, get the string after it
  2. If the link is embedded (prefixed by !) and the string is numeric, set the width HTML attribute
  3. If the link is a regular anchor tag, set the tag contents to the string, instead of matching the href attribute

I'd submit a pull request, but I don't have a very good understanding of how the templating engine works 😅

Fleek Deployment

Massive props to you for creating and open sourcing this project. I think it's awesome to have alternatives to Obsidian Publish, even though it's a great product on its own.

I'm trying to deploy this to Fleek, a different tool than Netlify. I'm moderately technically skilled and I'm wondering whether it'll work in the form it is currently in, or whether I would need to change something and if so what.

Have you tried deploying it to other platforms?

Global Graph

I was toying with the Graph implementation and have implemented the Global Graph. It will also eliminate Backlink and OutboundLink search for every note and put them in a graph JSON file to be used by everyone.

Eventually, we'll be able to add a depth slider and other fancy things.

It will require some UI polishing though.

If you find it useful, I can prepare a PR.

You can check this out at https://hermitage.utsob.me

Complete migration to lucide icons.

Currently, we have both lucide and font-awesome. We can actually migrate to lucide completely and make the appearance consistent and save some bandwidth.

I've done it in my digital garden. If it makes sense, I'll open a PR.

Links containing commas do not render

A couple of my links stopped working recently, and after some testing, it seems like all links containing commas render as plain text instead of as a link. I'm not sure as to the cause.

Fails to publish with footnotes

I see that footnotes are listed as a supported feature, but when I try to publish a file containing a footnote (using [^1] syntax), Vercel gives an undefined error on the footnote anchor:

10:37:33.286 | [11ty] Original error stack trace: TypeError: Cannot read properties of undefined (reading 'docId')
10:37:33.286 | [11ty]     at Object.render_footnote_anchor_name [as footnote_anchor_name] (/vercel/path0/node_modules/markdown-it-footnote/index.js:12:18)

Removing the footnote resolves the issue.

Disable/Enable favicon in Filetree or Navbar with custom components

I love the implementation of adding custom components to the site ♥️. It’s been a big help as I develop/customize my digital garden for D&D.

I was wondering if it would be possible to include custom components in the Filetree sidebar and/or Navbar, so that when I do a pull request via Obsidian to update my repository, I do not need to worry about losing custom code.

Original Code
Original

My Code
My Code

Links to headings lead to 404

Problem

When linking to the heading of another note, the hashtag is replaced with a hyphen character, leading to an invalid URL.

How to reproduce

  1. Create notes one.md with content # title and two.md with content [[one#title]]
  2. Publish both notes
  3. Go to digitalgarden.url/notes/two and click on the link
  4. Observe how it redirects to digitalgarden.url/notes/two-title instead of digitalgarden.url/notes/two/#title, causing a 404

Self-XSS via search input

This is a bad idea:

resultsHTML += `<p>No results for "${search}"</p>`;

If you paste e.g. <img src=a onerror='alert(1)'> into the search box, you get JS code execution on the page:

dg-docs.ole.dev says: "1"

I don't see any obvious way to turn this into a reflected XSS, and probably it's not even particularly exploitable in the contexts this template is likely to be used in, but the frequent use of innerHTML makes me nervous anyway.

Linked theme instead of embedding the whole css in every page.

I've managed to do that with following tweaks:

A get-theme.js:

require("dotenv").config();
const axios = require("axios");
const fs = require("fs");

async function getTheme(){
  let themeUrl = process.env.THEME;
  if (themeUrl) {
    //https://forum.obsidian.md/t/1-0-theme-migration-guide/42537
    //Not all themes with no legacy mark have a theme.css file, so we need to check for it
    try {
      await axios.get(themeUrl);
    } catch {
      if (themeUrl.indexOf("theme.css") > -1) {
        themeUrl = themeUrl.replace("theme.css", "obsidian.css");
      } else if (themeUrl.indexOf("obsidian.css") > -1) {
        themeUrl = themeUrl.replace("obsidian.css", "theme.css");
      }
    }

    const res = await axios.get(themeUrl);
    fs.writeFileSync("src/site/styles/theme.css", res.data, function (err) {
      if (err) {
        return console.log(err);
      }
      console.log("File saved");
    });
    
  }
};


getTheme();

And linked as:

<link href="/styles/theme.css" rel="stylesheet">

And in "package.json":

{...
"scripts": {
        "start": "npm-run-all build:theme build:sass --parallel watch:*",
        "watch:sass": "sass --watch src/site/styles:dist/styles",
        "watch:eleventy": "cross-env ELEVENTY_ENV=dev eleventy --serve",
        "build:eleventy": "cross-env ELEVENTY_ENV=prod NODE_OPTIONS=--max-old-space-size=4096 eleventy",
        "build:sass": "sass src/site/styles:dist/styles",
        "build:theme": "node src/site/get-theme.js",
        "build": "npm-run-all build:*",
        "postbuild": "node src/site/lunr-index.js"
    },
...
}

Downside is, no error checking if the theme pulling fails. But HTML will load without it anyway.

Issues in vercel deployment

Vercel deployment failed with the following errors

Running build in San Francisco, USA (West) – sfo1
--
11:19:43.750 | Cloning github.com/hpymntn/digitalgarden (Branch: main, Commit: 723bd84)
11:19:43.888 | Previous build cache not available
11:19:44.720 | Cloning completed: 969.411ms
11:19:44.813 | Running "vercel build"
11:19:45.216 | Vercel CLI 28.14.1
11:19:46.153 | Running "install" command: `npm install`...
11:19:49.440 | npm WARN deprecated [email protected]: this library is no longer supported
11:19:49.465 | npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
11:19:49.739 | npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
11:19:50.500 | npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
11:19:53.999 |  
11:19:53.999 | added 624 packages, and audited 625 packages in 8s
11:19:53.999 |  
11:19:53.999 | 80 packages are looking for funding
11:19:53.999 | run `npm fund` for details
11:19:54.009 |  
11:19:54.009 | 14 vulnerabilities (3 moderate, 10 high, 1 critical)
11:19:54.009 |  
11:19:54.009 | To address issues that do not require attention, run:
11:19:54.009 | npm audit fix
11:19:54.009 |  
11:19:54.009 | Some issues need review, and may require choosing
11:19:54.009 | a different dependency.
11:19:54.010 |  
11:19:54.277 |  
11:19:54.277 | > [email protected] build
11:19:54.277 | > npm-run-all get-theme build:*
11:19:54.277 |  
11:19:54.633 |  
11:19:54.634 | > [email protected] get-theme
11:19:54.634 | > node src/site/get-theme.js
11:19:54.634 |  
11:19:54.972 |  
11:19:54.972 | > [email protected] build:eleventy
11:19:54.972 | > cross-env ELEVENTY_ENV=prod NODE_OPTIONS=--max-old-space-size=4096 eleventy
11:19:54.972 |  
11:19:55.618 | [11ty] Problem writing Eleventy templates: (more in DEBUG output)
11:19:55.618 | [11ty] Cannot read properties of undefined (reading 'forEach') (via TypeError)
11:19:55.618 | [11ty]
11:19:55.619 | [11ty] Original error stack trace: TypeError: Cannot read properties of undefined (reading 'forEach')
11:19:55.619 | [11ty]     at getGraph (/vercel/path0/src/helpers/linkUtils.js:38:25)
11:19:55.619 | [11ty]     at Object.graph (/vercel/path0/src/site/_data/eleventyComputed.js:4:22)
11:19:55.619 | [11ty]     at ComputedData._setupDataEntry (/vercel/path0/node_modules/@11ty/eleventy/src/ComputedData.js:97:25)
11:19:55.619 | [11ty]     at ComputedData.processRemainingData (/vercel/path0/node_modules/@11ty/eleventy/src/ComputedData.js:118:16)
11:19:55.619 | [11ty]     at Template.resolveRemainingComputedData (/vercel/path0/node_modules/@11ty/eleventy/src/Template.js:674:29)
11:19:55.619 | [11ty]     at TemplateMap.resolveRemainingComputedData (/vercel/path0/node_modules/@11ty/eleventy/src/TemplateMap.js:619:37)
11:19:55.620 | [11ty]     at TemplateMap.cache (/vercel/path0/node_modules/@11ty/eleventy/src/TemplateMap.js:346:16)
11:19:55.620 | [11ty]     at async TemplateWriter.generateTemplates (/vercel/path0/node_modules/@11ty/eleventy/src/TemplateWriter.js:277:5)
11:19:55.620 | [11ty]     at async TemplateWriter.write (/vercel/path0/node_modules/@11ty/eleventy/src/TemplateWriter.js:323:23)
11:19:55.620 | [11ty] Wrote 0 files in 0.10 seconds (v1.0.2)
11:19:55.636 | ERROR: "build:eleventy" exited with 1.
11:19:55.653 | Error: Command "npm run build" exited with 1


Empty pictures with no srcsets

I just setup a new digital garden on Vercel, following the Getting Started process. Everything went pretty smoothly. Awesome plugin / docs - thanks.

One thing though... I noticed locally embedded images weren't showing up. I just got an empty <picture src="path/to/image"></picture> with no srcset in the middle. Which showed nothing in Safari.

If I go into the DOM and change the picture to a plain <img src="path/to/image"/> it works fine. So the original image upload and path are all ok.

Under further investigation I've found if I comment out L314 to L362 in .eleventy.js, then everything works ok again.

I think this relates to the recent Image optimization PR that was merged in.

I haven't pinned down the exact problem I'm afraid but maybe it'll be obvious to someone else... I think the transformImage() call in the try is failing (and the catch is currently empty so probably not indicating much other than someone should "// Make it fault tolarent." 😉).

Tags support

Thanks for this great plugin. Is there a plan to include tags in the published web?

Graph only working for pages without spaces or other non-latin characters

The graph view works for all my notes only containing latin characters like this one named "Radioaktivitet":
screenshot showing a note with working graph

But, all my notes containing non-latin characters (like norwegian æ, ø or å) or spaces loads the graph view for the Home note (the home note is called "Ståles notater på nettet"). This is an example with a note called "Bakgrunnsstråling". As you can see, the graph view is centered on the home note.
screenshot showing note with graph centered on home note

I experience the same problem with notes with file names containing spaces.

I have the slugify note URL setting turned off as instructed because of the non-english characters.
screenshot showing settings

Is "@azure/storage-blob": "^12.8.0" in use anywhere

been exploring the code a bit and understanding what and where is in use. I realized there is no reference in code anywhere for azure/storage-blob except in package.json and package-lock.json.

  1. Are we using this npm module anywhere at all.

I ran npx npm-check that helped me find this. it also find sass but then i can see it being used as a binary in build steps so it makes sens but stuck with finding usage for storage-blob

RSS support

Hey,

Any plans to add RSS support?

Thanks

Supporting for title from frontmatter

It is pretty normal to add a title to the frontmatter. Many static site generator uses this. A significant advantage of this over a filename is that some characters (e.g. :) are not allowed in the filename.

I propose to add support for title and falling back to fileSlug if unavailable throughout the site.

Since, I've already implemented it, I think I can organize the things and open a PR if you are fine with the idea.

Minification

We can actually implement minification to save bandwidth and load faster. If you think it is a good idea, I can open a PR.

MathJax and backslashes

Hello,

Before all, Thanks a lot for this plugin !

It seems there's an issue with MathJax, eg. with the two backslashes used to create a new line in a matrix, one of them is deleted so no rows are created :
image

(If I add four backslashes it works, but it adds unnecessary rows in Obsidian)

EDIT: But sometimes it render correctly :

$R(\theta)=\begin{bmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{bmatrix}$

image

It's when I add spaces around the \\ that it fails and display the 4 elements on a line

Ability to use task list and checkboxes

Hello, first of all applause for the great plugin and template.

I'm wondering why the checkboxes for task list are disabled, can they be enabled?
Can we have control over them somehow?

Thanks!

upgrading to v1.52.0 results in error: about eleventy-plugin-gen-favicons

I have added a custom css file:
src\site\styles\user\changeIcon.css

body {
    --note-icon-1: url(/img/custom.svg);
    --note-icon-2: url(/favicon.svg);
    --note-icon-3: url(/img/tree-3.svg);
    --note-icon-fallback: url(/img/default-note-icon.svg);
}

no more custom change.

and here is the error output from netlify.


6:06:49 PM: [11ty] Problem writing Eleventy templates: (more in DEBUG output)
6:06:49 PM: [11ty] 1. Having trouble writing to "dist/contents/diffusion-model-mathematics/index.html" from "./src/site/notes/Default/Diffusion model - mathematics.md" (via EleventyTemplateError)
6:06:49 PM: [11ty] 2. (./src/site/_includes/layouts/note.njk)
6:06:49 PM: [11ty] Template render error: (/opt/build/repo/src/site/_includes/components/pageheader.njk)
6:06:49 PM: [11ty] EleventyShortcodeError: Error with Nunjucks shortcode favicons (via Template render error)
6:06:49 PM: [11ty] 3. Expected number between 1 and 100000 for density but received 0.5625 of type number (via Template render error)
6:06:49 PM: [11ty]
6:06:49 PM: [11ty] Original error stack trace: Error: Expected number between 1 and 100000 for density but received 0.5625 of type number
6:06:49 PM: [11ty] at Object.invalidParameterError (/opt/build/repo/node_modules/eleventy-plugin-gen-favicons/node_modules/sharp/lib/is.js:124:10)
6:06:49 PM: [11ty] at Sharp._createInputDescriptor (/opt/build/repo/node_modules/eleventy-plugin-gen-favicons/node_modules/sharp/lib/input.js:92:18)
6:06:49 PM: [11ty] at new Sharp (/opt/build/repo/node_modules/eleventy-plugin-gen-favicons/node_modules/sharp/lib/constructor.js:341:29)
6:06:49 PM: [11ty] at Sharp (/opt/build/repo/node_modules/eleventy-plugin-gen-favicons/node_modules/sharp/lib/constructor.js:169:12)
6:06:49 PM: [11ty] at resizedSharp (/opt/build/repo/node_modules/eleventy-plugin-gen-favicons/favicon-gen.js:34:10)
6:06:49 PM: [11ty] at /opt/build/repo/node_modules/eleventy-plugin-gen-favicons/favicon-gen.js:41:33
6:06:49 PM: [11ty] at Array.map ()
6:06:49 PM: [11ty] at icoBuf (/opt/build/repo/node_modules/eleventy-plugin-gen-favicons/favicon-gen.js:41:20)
6:06:49 PM: [11ty] at module.exports (/opt/build/repo/node_modules/eleventy-plugin-gen-favicons/favicon-gen.js:92:7)
6:06:49 PM: [11ty] at async Object. (/opt/build/repo/node_modules/eleventy-plugin-gen-favicons/index.js:25:28)
6:06:50 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
6:06:49 PM: [11ty] Copied 29 files / Wrote 0 files in 0.42 seconds (v2.0.1)
6:06:49 PM: ERROR: "build:eleventy" exited with 1.
6:06:49 PM: ​
6:06:49 PM: "build.command" failed
6:06:49 PM: ────────────────────────────────────────────────────────────────
6:06:49 PM: ​
6:06:49 PM: Error message
6:06:49 PM: Command failed with exit code 1: npm install && npm run build (https://ntl.fyi/exit-code-1)
6:06:49 PM: ​
6:06:49 PM: Error location
6:06:49 PM: In build.command from netlify.toml:
6:06:49 PM: npm install && npm run build
6:06:49 PM: ​
6:06:49 PM: Resolved config
6:06:49 PM: build:
6:06:49 PM: command: npm install && npm run build
6:06:49 PM: commandOrigin: config
6:06:49 PM: publish: /opt/build/repo/dist
6:06:49 PM: publishOrigin: config
6:06:49 PM: functionsDirectory: /opt/build/repo/netlify/functions
6:06:49 PM: redirects:
6:06:50 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:06:50 PM: Failing build: Failed to build site
6:06:51 PM: Finished processing build request in 18.172s

RSS </link> missing

I noticed the RSS feed is no longer working, when checking the file with VS Code I found the following problem:

image

I assume this can be fixed by adding ´</link>´ at the end of line 26 in /src/site/feed.njk

If you want to look at the feed.xml itself, it can ba accessed at: http://notes.tillstuder.com/feed.xml

Slash in tags in content

Obsidian supports slash in tags. I thought it didn't and modified the regex accordingly. Can you please update the regex in both taggify and search tag's regex (both in .elventy.js) to this?

/(^|\s|\>)(#[^\s!@#$%^&*()=+\.,\[{\]};:'"?><]+)(?!([^<]*>))/g

Multiple dataview tables causes build failure

Since #133 I now get an error when attempting to update my template to the latest version. I believe this is because of the note I have that has two tables in it

Cannot read properties of null (reading 'classList')
[11ty] Original error stack trace: TypeError: Cannot read properties of null (reading 'classList')

The error refers specifically to line 379 of .eleventy.js, which is t.querySelector("tbody").classList.add("table-view-tbody");

[FR] Improving the inline code visibility

First of all, thank you very much for the great plugin (and website template) it is very nice !

My request is regarding how inline code displays, I feel like it does not stand out as much as I would like it to. Something like the default format in Obsidian would be just right. Here's some pictures to better highlight my point :
On the website : image
In Obsidian :
image
Another slight variant that could be nice : image

I personally really don't mind the color, I just would like it to stand out better from regular text.

link to other notes with display text seems to generate a wrong link

Hello,

I just start to use your digital garden on netlify and I have a little problem.
All works perfectly except the "link to other notes", maybe I don't use it correctly ?

If I use :

[[link to other note]]

The generated url on my digital garden is ok but when I add a display text to my link :

[[link to other note | display text]]

The generated link on the page lead to a 404 error.

It seems if I add a display text the url will always be

"/notes/name-of-the-file" (Always starting with notes ans with the little - )

instead of

"/subfolder name/other subfolders/name of the file" (without notes at the beginig and without the little -)

Thanks fo all the work you've done.
My english is not perfect but I hop I'll be understandable.

Have a nice day :)

Admonitions with empty title

Small issue : on Obsidian when the title property is set empty, the title disappear, but it's not the case on the generated pages.

Faild to Build

It seems that after pulishing some posts, it will get an error.
I got the error on the Netlify when Manage Digital Garden Plug-in in obsidian.
"Build failed due to a user error: Build script returned non-zero exit code: 2"
I have try many times, but I don't know why.
Very appreciate for getting the help from you, thank you.

Meta attributes

This is an easy feature to implement. Here's what I thought about it (and used it already):

A key for metatags (e.g. dg-meta-tags) with this convention:

dg-meta-tags:
 description: "some description"
 "og:image": "https://imagelink...."

Then we can iterate on it and use the key as the name and value as the content and generate meta tags in the head.

big gap on left side when filetree is off.

Can we have a CSS fix when filetree is off the content starts from a bit more left right now the sidebar if it doesn't exists is just left as a empty space with content stuck in middle of a page.
Not very good with CSS hence asking here.

Any plans of maintaining a github actions based version

Hi based on my limited experience with this plugin it should be straight forward to setup the github actions to deploy the code to say GitHub pages or s3 bucket. so my question

  1. Is this something that you would want to add to the plugin.
  2. If yes: no pressure
  3. if no: Can i create a fork of it and try to add those features and make it available in case anyone wants it.

Search functionality is flawed

If I've got a word like "handshake" in one of my .md files (let's say example.md) - the search only finds it if you don't write it whole.
For example:
hand: search finds example.md
shake: search doesn't find example.md
handshake: search doesn't find example.md

Internationalization (i18n)

Hello, thanks building such impressive template.

I am currently using https://github.com/jackyzha0/quartz/ for my public knowledge base, but it has some quirks, so I considered switching to another alternative, however I wonder if it's possible to add internationalization and multi-language support to the template, so I can have two versions of my website with different languages like I do with quartz (example: ar - en).

As far I understand, 11ty supports doing this: https://www.11ty.dev/docs/i18n/

Also, I might be able to help with this if you welcome the idea :)

Deploy failed after merge 1.26.0

Hi, I just update the template to 1.26.0, but Netlify and vercel both failed to deploy.

Obsidian version: 1.1.9
Digital Garden version: 2.30.0
The error messages are:

Netlify

4:12:28 PM:   Netlify Build                                                 
4:12:28 PM: ────────────────────────────────────────────────────────────────
4:12:28 PM: ​
4:12:28 PM: ❯ Version
4:12:28 PM:   @netlify/build 29.4.0
4:12:28 PM: ​
4:12:28 PM: ❯ Flags
4:12:28 PM:   baseRelDir: true
4:12:28 PM:   buildId: 63b7d7d6c32b730007022d32
4:12:28 PM:   deployId: 63b7d7d6c32b730007022d34
4:12:28 PM: ​
4:12:28 PM: ❯ Current directory
4:12:28 PM:   /opt/build/repo
4:12:28 PM: ​
4:12:28 PM: ❯ Config file
4:12:28 PM:   /opt/build/repo/netlify.toml
4:12:28 PM: ​
4:12:28 PM: ❯ Context
4:12:28 PM:   production
4:12:28 PM: ​
4:12:28 PM:   1. build.command from netlify.toml                            
4:12:28 PM: ────────────────────────────────────────────────────────────────
4:12:28 PM: ​
4:12:28 PM: $ npm install && npm run build
4:12:29 PM: up to date, audited 606 packages in 1s
4:12:29 PM: 72 packages are looking for funding
4:12:29 PM:   run `npm fund` for details
4:12:29 PM: 12 vulnerabilities (6 moderate, 5 high, 1 critical)
4:12:29 PM: To address issues that do not require attention, run:
4:12:29 PM:   npm audit fix
4:12:29 PM: Some issues need review, and may require choosing
4:12:29 PM: a different dependency.
4:12:29 PM: Run `npm audit` for details.
4:12:30 PM: > [email protected] build
4:12:30 PM: > npm-run-all build:*
4:12:30 PM: > [email protected] build:eleventy
4:12:30 PM: > cross-env ELEVENTY_ENV=prod NODE_OPTIONS=--max-old-space-size=4096 eleventy
4:12:31 PM: [11ty] Problem writing Eleventy templates: (more in DEBUG output)
4:12:31 PM: [11ty] Cannot find module '../helpers/linkUtils'
4:12:31 PM: [11ty] Require stack:
4:12:31 PM: [11ty] - /opt/build/repo/src/site/index.11tydata.js
4:12:31 PM: [11ty] - /opt/build/repo/node_modules/@11ty/eleventy/src/TemplateData.js
4:12:31 PM: [11ty] - /opt/build/repo/node_modules/@11ty/eleventy/src/Eleventy.js
4:12:31 PM: [11ty] - /opt/build/repo/node_modules/@11ty/eleventy/cmd.js (via Error)
4:12:31 PM: [11ty]
4:12:31 PM: [11ty] Original error stack trace: Error: Cannot find module '../helpers/linkUtils'
4:12:31 PM: [11ty] Require stack:
4:12:31 PM: [11ty] - /opt/build/repo/src/site/index.11tydata.js
4:12:31 PM: [11ty] - /opt/build/repo/node_modules/@11ty/eleventy/src/TemplateData.js
4:12:31 PM: [11ty] - /opt/build/repo/node_modules/@11ty/eleventy/src/Eleventy.js
4:12:31 PM: [11ty] - /opt/build/repo/node_modules/@11ty/eleventy/cmd.js
4:12:31 PM: [11ty]     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
4:12:31 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:12:31 PM: [11ty]     at Function.Module._load (node:internal/modules/cjs/loader:841:27)
4:12:31 PM: [11ty]     at Module.require (node:internal/modules/cjs/loader:1067:19)
4:12:31 PM: [11ty]     at require (node:internal/modules/cjs/helpers:103:18)
4:12:31 PM: [11ty]     at Object.<anonymous> (/opt/build/repo/src/site/index.11tydata.js:6:44)
4:12:31 PM: [11ty]     at Module._compile (node:internal/modules/cjs/loader:1165:14)
4:12:31 PM: [11ty]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
4:12:31 PM: [11ty]     at Module.load (node:internal/modules/cjs/loader:1043:32)
4:12:31 PM: [11ty]     at Function.Module._load (node:internal/modules/cjs/loader:878:12)
4:12:31 PM: [11ty]     at Module.require (node:internal/modules/cjs/loader:1067:19)
4:12:31 PM: [11ty] Benchmark    174ms  36%     1× (Data) `./src/site/_data/meta.js`
4:12:31 PM: [11ty] Wrote 0 files in 0.25 seconds (v1.0.2)
4:12:31 PM: ERROR: "build:eleventy" exited with 1.
4:12:31 PM: ​
4:12:31 PM:   "build.command" failed                                        
4:12:31 PM: ────────────────────────────────────────────────────────────────
4:12:31 PM: ​
4:12:31 PM:   Error message
4:12:31 PM:   Command failed with exit code 1: npm install && npm run build (https://ntl.fyi/exit-code-1)
4:12:31 PM: ​
4:12:31 PM:   Error location
4:12:31 PM:   In build.command from netlify.toml:
4:12:31 PM:   npm install && npm run build
4:12:31 PM: ​
4:12:31 PM:   Resolved config
4:12:31 PM:   build:
4:12:31 PM:     command: npm install && npm run build
4:12:31 PM:     commandOrigin: config
4:12:31 PM:     publish: /opt/build/repo/dist
4:12:31 PM:     publishOrigin: config
4:12:31 PM:   functionsDirectory: /opt/build/repo/netlify/functions
4:12:31 PM:   redirects:
4:12:31 PM:     - from: /api/*
      status: 200
      to: /.netlify/functions/:splat
    - from: /*
      status: 404
      to: /404
  redirectsOrigin: config
Caching artifacts
4:12:31 PM: Started saving node modules
4:12:31 PM: Finished saving node modules
4:12:31 PM: Started saving build plugins
4:12:31 PM: Finished saving build plugins
4:12:31 PM: Started saving pip cache
4:12:31 PM: Finished saving pip cache
4:12:31 PM: Started saving emacs cask dependencies
4:12:31 PM: Finished saving emacs cask dependencies
4:12:31 PM: Started saving maven dependencies
4:12:31 PM: Finished saving maven dependencies
4:12:31 PM: Started saving boot dependencies
4:12:31 PM: Finished saving boot dependencies
4:12:31 PM: Started saving rust rustup cache
4:12:31 PM: Finished saving rust rustup cache
4:12:31 PM: Started saving go dependencies
4:12:31 PM: Finished saving go dependencies
4:12:31 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:12:31 PM: Failing build: Failed to build site
4:12:31 PM: Finished processing build request in 20.690229452s

vercel

<html>
<body>
<!--StartFragment-->

> [email protected] build:eleventy
--
16:12:17.718 | > cross-env ELEVENTY_ENV=prod NODE_OPTIONS=--max-old-space-size=4096 eleventy
16:12:17.718 |  
16:12:18.797 | [11ty] Problem writing Eleventy templates: (more in DEBUG output)
16:12:18.798 | [11ty] Cannot find module '../helpers/linkUtils'
16:12:18.798 | [11ty] Require stack:
16:12:18.798 | [11ty] - /vercel/path0/src/site/index.11tydata.js
16:12:18.799 | [11ty] - /vercel/path0/node_modules/@11ty/eleventy/src/TemplateData.js
16:12:18.799 | [11ty] - /vercel/path0/node_modules/@11ty/eleventy/src/Eleventy.js
16:12:18.799 | [11ty] - /vercel/path0/node_modules/@11ty/eleventy/cmd.js (via Error)
16:12:18.799 | [11ty]
16:12:18.800 | [11ty] Original error stack trace: Error: Cannot find module '../helpers/linkUtils'
16:12:18.800 | [11ty] Require stack:
16:12:18.800 | [11ty] - /vercel/path0/src/site/index.11tydata.js
16:12:18.800 | [11ty] - /vercel/path0/node_modules/@11ty/eleventy/src/TemplateData.js
16:12:18.800 | [11ty] - /vercel/path0/node_modules/@11ty/eleventy/src/Eleventy.js
16:12:18.800 | [11ty] - /vercel/path0/node_modules/@11ty/eleventy/cmd.js
16:12:18.801 | [11ty]     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
16:12:18.801 | [11ty]     at Function.Module._load (node:internal/modules/cjs/loader:833:27)
16:12:18.801 | [11ty]     at Module.require (node:internal/modules/cjs/loader:1057:19)
16:12:18.801 | [11ty]     at require (node:internal/modules/cjs/helpers:103:18)
16:12:18.801 | [11ty]     at Object.<anonymous> (/vercel/path0/src/site/index.11tydata.js:6:44)
16:12:18.802 | [11ty]     at Module._compile (node:internal/modules/cjs/loader:1155:14)
16:12:18.802 | [11ty]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
16:12:18.802 | [11ty]     at Module.load (node:internal/modules/cjs/loader:1033:32)
16:12:18.802 | [11ty]     at Function.Module._load (node:internal/modules/cjs/loader:868:12)
16:12:18.802 | [11ty]     at Module.require (node:internal/modules/cjs/loader:1057:19)
16:12:18.802 | [11ty] Benchmark    186ms  25%     1× (Data) `./src/site/_data/meta.js`
16:12:18.803 | [11ty] Wrote 0 files in 0.33 seconds (v1.0.2)
16:12:18.836 | ERROR: "build:eleventy" exited with 1.
16:12:18.861 | Error: Command "npm install && npm run build" exited with 1

<!--EndFragment-->
</body>
</html>

I am not sure whether it's my fault or the new template bugs. Hope you can give me some solutions, Thanks!

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.