GithubHelp home page GithubHelp logo

Comments (10)

lggruspe avatar lggruspe commented on June 5, 2024 1

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.

lggruspe avatar lggruspe commented on June 5, 2024 1

It should be fixed now in the newest commit. a31eea8

from slipbox.

lggruspe avatar lggruspe commented on June 5, 2024 1

It's been uploaded.

Note: you may have to delete the .slipbox folder and to reinitalize with slipbox init.

from slipbox.

reyman avatar reyman commented on June 5, 2024 1

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.

reyman avatar reyman commented on June 5, 2024

@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.

lggruspe avatar lggruspe commented on June 5, 2024

<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.

lggruspe avatar lggruspe commented on June 5, 2024

the 404 I think is a different problem.

from slipbox.

reyman avatar reyman commented on June 5, 2024

<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.

reyman avatar reyman commented on June 5, 2024

It should be fixed now in the newest commit. a31eea8

Great ! I test ASAP !

from slipbox.

reyman avatar reyman commented on June 5, 2024

@lggruspe Is it possible to push a new release on pipy to test ? Thx

from slipbox.

Related Issues (16)

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.