Blot

Documentation for documentation template?

I'm currently exploring your new Documentation template but I can't seem to figure how to get new content to show up in it. I've followed the numbering & titling format, etc. but no luck.

Can you provide details or documentation for it?

I'm thinking of using it to put one of my Obsidian vaults online.

Asked a year ago Edit
6 replies

You found a bug with the template – the navigation on the left side is paginated behind the scenes, and you were hitting the limit of 18 posts. I have bumped this up to 100. If you re-download the source code here, you should have the latest version:

https://blot.im/templates/documentation

In answer to your question: the source folder of the template and example content is intended to document how the template is meant to be used.

For example, to work out how to achieve the expanding sections in the FAQ, the answer would be in the source file for that page.

As always, please let me know if you have any questions about this or anything else

a year ago Edit

Works now!

Just so I understand -- each folder needs an index.txt file (and not .md) right?

Are numbers required in front of the file names and/or folders, i.e. 1. Communities.md, 2. Thoughts.md, etc?

Thanks, Ray

a year ago Edit

Yes, you need an index file for the folder to work. It doesn't have to be a text file .txt, it can be .md or any other file supported by Blot but it should be called 'index' or 'Index' for the folder to appear in the navigation.

The numbers are not required but are useful to sort the links in the navigation.

I now see it's a little fiddly. Perhaps I can modify the folder content to document itself rather than some fake programming project.

Anyway, please let me know if you have any other questions! Once we're done with the thread I'll summarize and amend the example content

a year ago Edit

Makes sense. I'll play with it some more and report back with suggestions if any.

There does seem to be a bug -- when executing a search there is a link to the archives on the resuilts page but there is no archives page (reports "page not found" when clicking).

Looks like the file has to be named "1. Index.txt" (index.txt or index.md doesn't work) inside a folder for it to show up.

The existing FAQ portion doesn't seem to support dark mode - it is all white and difficult to read.

Also when I adjust some settings on the settings page (i.e. font and font size) it works then reverts. Does this mean I need to edit the package.json in the template folder instead?

I like the potential of this template -- it seems to boost the idea of having a digital garden using Obsidian so I'm excited about that possibility.

Props! Ray

UPDATE: When there are a lot of menu items in the left navigation the page doesn't scroll back up when clicking a new item. This code fixes that issue when placed just before the </body> element:

<script>
// Scroll to top on page load
window.addEventListener('load', function() {
  window.scrollTo(0, 0);
});

// Also scroll to top when clicking any link
document.addEventListener('click', function(e) {
  // Check if clicked element is a link or inside a link
  const link = e.target.closest('a');
  if (link && link.href && !link.href.startsWith('#')) {
    // Only for navigation links, not anchor links
    window.scrollTo(0, 0);
  }
});
</script>
a year ago Edit

Thanks for the report, let me fix these!

a year ago Edit

Ray, I just wanted to let you know that these bugs with the documentation template should be fixed, I rewrote the sidebar code

a month ago Edit

Your reply