From mboxrd@z Thu Jan 1 00:00:00 1970 From: hugo at lysator.liu.se (Hugo =?utf-8?Q?H=C3=B6rnquist?=) Date: Fri, 28 Dec 2018 16:54:43 +0100 Subject: Render Jupyter notebook in tree In-Reply-To: References: Message-ID: <20181228155443.GA15688@STATENS_laptop> That could be a nice feature to have. But I'm not sure that it's something that should be there by default. Anyway, I personally run a filter which renders out org-mode files in tree view. It's a bit slow, and lacks a good way to add CSS. ... extension=${REQUEST_URI: -3} case $extension in org) temp=$(mktemp) cat - > $temp.org emacs $temp.org \ --quick \ --batch \ --funcall org-html-export-to-html \ --kill tail -n+10 $temp.html exit 0 ;; esac exec highlight --force -f -I -O xhtml -S "$EXTENSION" # 2>/dev/null On Fri, Dec 28, 2018 at 10:48:22PM +0900, Katsuya Horiuchi wrote: > Hi all, > > Is there demand to render Jupyter notebooks in tree view? > I personally would love to see them rendered just like GitHub. > > It can be achieved by calling nbconvert [0] inside the filter. > Considering there's ongoing discussion on rendering markdown files, I > think this could add additional value to cgit. > > [0] https://github.com/jupyter/nbconvert > > > Best, > > Katsuya > _______________________________________________ > CGit mailing list > CGit at lists.zx2c4.com > https://lists.zx2c4.com/mailman/listinfo/cgit -- hugo