Comments (10)
It's a bug and it needs to be fixed here. The relevant code is in https://github.com/lggruspe/slipbox/blob/master/js/src/list.js and https://github.com/lggruspe/slipbox/blob/master/slipbox/page.py.
The generated index.html
actually already contains the <li>
elements with the note IDs as values.
The <ol>
elements are rendered in page.py
(look for slipbox-list
).
All list.js
does is to get the note titles from the DOM (section.slipbox-note
elements) and to copy the title into the <li>
elements.
from slipbox.
It should be fixed now in the newest commit. a31eea8
from slipbox.
It's been uploaded.
Note: you may have to delete the .slipbox
folder and to reinitalize with slipbox init
.
from slipbox.
It works, thanks @lggruspe : https://gt-notebook.gitpages.huma-num.fr/wiki/#home
I wrap slipbox into another application because people on the project write using [[]] wikilinks (using obsidian and zetlr). So i convert [[]] into .md to using regex before running slipbox. i also retrieve dynamicaly a zotero .bib from a group before compilation by slipbox.
from slipbox.
@lggruspe Our website is now online so you could see the problem directly on the main page here : https://gt-notebook.gitpages.huma-num.fr/wiki/#home
I don't know how li is linked with section using css or js but the probleme is probably here, a problem of ranking of timestamp used as value ? ...
Moving from <ol>
to <ul>
probably solve the problem
Edit : That doesn't solve the problem. I change all ol to ul in the html using regex, without change.
from slipbox.
<li>
elements don't seem to work with very large values. I'm guessing the value has to fit in a javascript number.
The solution is probably to not to use <li
>s to display links.
from slipbox.
the 404 I think is a different problem.
from slipbox.
<li>
elements don't seem to work with very large values. I'm guessing the value has to fit in a javascript number.The solution is probably to not to use
<li
>s to display links.
I search a little and i cannot found the js part that manage link between "section number" and "li value" ?
If you remove li value how do you build the main page ?
In the future do you patch this in the current code or i need to fork because this is too specific to our case ?
from slipbox.
It should be fixed now in the newest commit. a31eea8
Great ! I test ASAP !
from slipbox.
@lggruspe Is it possible to push a new release on pipy to test ? Thx
from slipbox.
Related Issues (16)
- Interactive init HOT 1
- Switch to multi-page HTML output? HOT 1
- Handling duplicate IDs HOT 1
- Fix notes preprocessor HOT 1
- Timestamps vs. hash? HOT 1
- Backlinks visible into notes ? HOT 2
- add specific error message for missiing graphviz dependency HOT 7
- index.html not generated by slipbox build command HOT 2
- Allow use of pandoc filters
- Reverse order of notes in home page so that new notes (larger IDs) are shown first
- `slipbox check`: add data arg to pass data to checkers
- Alias for group of checkers
- Add checker that shows warning when different tags have similar spelling
- Graph in `#ref-` pages HOT 1
- check: show warning if there's a note with no ID
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slipbox.