jupyenv icon indicating copy to clipboard operation
jupyenv copied to clipboard

[Bug]: documentation for options is broken

Open anpin opened this issue 1 year ago • 4 comments

Current Behavior

image image

Expected Behavior

options are shown

Steps To Reproduce

https://jupyenv.io/documentation/options/

OS

irrelevant

Version

master

Additional Context

lib.mdDoc was removed in https://github.com/tweag/jupyenv/pull/563

Relevant log output

Uncaught TypeError: Cannot read properties of undefined (reading 'style')
    at options.js:151:51
    at NodeList.forEach (<anonymous>)
    at initializePage (options.js:149:6)
    at options/:711:5

anpin avatar Dec 03 '24 08:12 anpin

seems like options.py is no longer working

Tagging @garbas and @djacu since they are the only authors

anpin avatar Dec 03 '24 13:12 anpin

I found that nest_options_in_dom function is producing empty DOM. However both nix build .\#lib.x86_64-linux.options.optionsJSON and html = md.render(commonmark) in above options.py seems to yield the same format as before.

anpin avatar Dec 03 '24 13:12 anpin

cc @GTrunSec

phanirithvij avatar May 04 '25 11:05 phanirithvij

as of now I get

Uncaught TypeError: getNextSibling(...) is undefined
    initializePage https://jupyenv.io/javascripts/options.js:151
    initializePage https://jupyenv.io/javascripts/options.js:149
    <anonymous> https://jupyenv.io/documentation/options/:711
[options.js:151:21](https://jupyenv.io/javascripts/options.js)

I comment that line locally and rebuild nix build .#packages.x86_64-linux.docs --accept-flake-config

and I still can't view the options (double checked disabled cache in the browser, and no new errors in the console)

phanirithvij avatar May 04 '25 11:05 phanirithvij