lggruspe / slipbox Goto Github PK
View Code? Open in Web Editor NEWA static site generator for Zettelkasten notes
Home Page: https://lggruspe.github.io/slipbox
License: MIT License
A static site generator for Zettelkasten notes
Home Page: https://lggruspe.github.io/slipbox
License: MIT License
Hi,
I see in code that you compute backlinks for every notes, is it possible to add "shortcode" or anything to include linked notes (not tagged notes) to page during generation ?
Best regards !
I have one index.md with two headers in my folder and after slipbox build
I get a \public folder with artefacts, but no index.hrml. what can be wrong?
Is your feature request related to a problem? Please describe.
New notes go to the end of the list. When you have a large number of notes, you have to scroll to the bottom to see the new notes.
Describe the solution you'd like
Reverse the order of the list of notes in the home page so that new notes are immediately visible.
Is your feature request related to a problem? Please describe.
Use case: passing data to a checker. For example, enabling checks only on a specific cluster of notes.
Describe the solution you'd like
Here's an example.
slipbox check --enable isolated-note,graph-cycle --data data.json
data.json
contains data to pass to the checkers.
{
"graph-cycle": {
"tags": ["#foo", "#bar"]
},
"isolated-note": {
"tags": ["#foo", "#bar"]
}
}
Then the graph-cycle
and isolated-note
checks will only be applied to the notes with the specified tags.
Describe alternatives you've considered
Passing data via config file is another option.
[slipbox]
# omitted ...
[check]
graph-cycle = true
isolated-note = true
[check.graph-cycle]
tags = "#foo,#bar"
[check.isolated-note]
tags = "#foo,#bar"
Is your feature request related to a problem? Please describe.
Suppose you have #language
and #languages
, it would be better if you only had one of these.
Describe the solution you'd like
New checker: slipbox check --enable tags-with-similar-spelling
Then the output would be a list of tags with similar spelling.
New notes with the same note ID as an existing note overwrite the existing note. Should slipbox keep the existing note instead?
Is your feature request related to a problem? Please describe.
It can be tedious to enable multiple checkers at once. It would be useful to have aliases for groups of checkers that are commonly used together.
all
already exists.
Describe the solution you'd like
graph
for notes-graph-related checks?
link
for link-related warnings?
Describe alternatives you've considered
Maybe add an [alias]
section to the config file for defining custom aliases?
Notes preprocessor inserts HTML comments into notes, so it only supports Markdown and HTML? It's supposed to work with other formats supported by Pandoc.
Hi,
I'm trying to use slipbox with my ZK timestamp based UUID (ex 20211011140846 for 2021-10-11-...), but i everything goes well on navigation with big number, the main menu (index.html) is blank not displayed.
Here the result of my index.html with no errors after build :
<main>
<section id="home" class="level1" title="Home">
<h1>Slipbox</h1>
<ol class="slipbox-list">
<li value='20211011140846'></li>
<li value='20211011142113'></li>
</ol>
</section>
<section id="20211011140846" class="level1 slipbox-note" data-filename="20211011140846.md" title="GT Notebook">
<h1>GT Notebook</h1>
<p>Réflexion sur l’objet Notebook</p>
<ul>
<li><a href="20211011142113">Notebook & Constructivisme</a> Notebook & Constructivisme</li>
</ul>
</section>
<section id="20211011142113" class="level1 slipbox-note" data-filename="20211011142113.md" title="Notebook & Constructivisme">
<h1>Notebook & Constructivisme</h1>
...
The number appear then disapear, probably linked to this 404 :
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
127.0.0.1 - - [11/Oct/2021 18:49:46] "GET /public/ HTTP/1.1" 200 -
127.0.0.1 - - [11/Oct/2021 18:49:47] code 404, message File not found
127.0.0.1 - - [11/Oct/2021 18:49:47] "GET /usr/share/javascript/mathjax/tex-mml-chtml.js HTTP/1.1" 404 -
127.0.0.1 - - [11/Oct/2021 18:49:47] "GET /public/app.js HTTP/1.1" 304 -
127.0.0.1 - - [11/Oct/2021 18:49:47] "GET /public/graph/data.json HTTP/1.1" 304 -
Why?
slipbox build
generates HTML every time it's run. It might run into problems with extremely large notes.Issues:
Describe the bug
When you go to a tag page (e.g. /#foo
) and look at the notes graph, it shows a graph of the notes in the #foo
cluster.
But when you go to a page in a reference page (e.g. /#ref-John2020
) and look at the notes graph, it shows the graph of all the notes in the slipbox.
Expected behavior
The notes graph should only show notes that cite the reference.
Desktop (please complete the following information):
Are timestamps reliable enough for looking for modified files? Maybe file hashes should be used instead?
slipbox init
should configure notes directory interactively if no options are specified.
Ex: This should be interactive:
python -m slipbox init
but not this:
python -m slipbox init --document_options '-o index.html -s'
Is your feature request related to a problem? Please describe.
There's currently no way to use slipbox with custom pandoc filters.
Describe the solution you'd like
Allow passing filters via CLI args or config file:
slipbox build --filters './filters/foo.lua:./filters/bar:./filters/baz.lua'
Or with config file:
[slipbox]
# omitted ...
[pandoc-options]
filters = filters/foo.lua:filters/bar:filters/baz.lua
# or:
[pandoc-filters]
filters/foo.lua = true
filters/bar = true
filters/baz.lua = true
Thanks a lot for the beautiful generator for the notes. I think it is really a missing link in the ecosystem - too many editors, to few open free presenatations of notes, in my opinion.
I spotted a problem which prevents me from running slipbox: the dependency check:
Q:\slipbox
λ slipbox
pandoc not found
Q:\slipbox
λ python -c"from shutil import which; print(which('pandoc'))"
C:\Users\epogr\Anaconda3\Scripts\pandoc.EXE
pandoc is available on the system, but fails the check by slipbox, wonder why that happens. Maybe aoid dependecy check at all and allow to fail when called and not found?
Is your feature request related to a problem? Please describe.
When you add a section that doesn't have an ID, slipbox
just ignores it.
Describe the solution you'd like
Add no-id
check.
The output is a list of files that contain sections without a note ID.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.