eronhennessey / sphinx-mobi-builder Goto Github PK
View Code? Open in Web Editor NEWA Sphinx builder for .mobi (Kindle) files.
License: BSD 3-Clause "New" or "Revised" License
A Sphinx builder for .mobi (Kindle) files.
License: BSD 3-Clause "New" or "Revised" License
This isn't yet python3 compatible with some exception syntax and whatnot.
I actually ran 2to3 on it and rebuilt with python3 and it seems to at least start running. I haven't been able to fully test it because of another issue.
Running this with a 2to3
converted version on the most recent sphinx gives the following traceback:
# Sphinx version: 1.8.3
# Python version: 3.6.7 (CPython)
# Docutils version: 0.14⋅
# Jinja2 version: 2.10
# Last messages:
# writing output... [ 90%] glossary
#⋅⋅⋅
# writing output... [100%] index
#⋅⋅⋅
#⋅⋅⋅
#⋅⋅⋅
# generating indices...
#⋅⋅⋅
# genindex
#⋅⋅⋅
# Loaded extensions:
# sphinx.ext.mathjax (1.8.3) from /home/nick/.local/lib/python3.6/site-packages/sphinx/ext/mathjax.py
# alabaster (0.7.12) from /home/nick/.local/lib/python3.6/site-packages/alabaster/__init__.py
# sphinx.ext.imgmath (1.8.3) from /home/nick/.local/lib/python3.6/site-packages/sphinx/ext/imgmath.py
# sphinx.ext.graphviz (1.8.3) from /home/nick/.local/lib/python3.6/site-packages/sphinx/ext/graphviz.py
# sphinxcontrib.tikz (0.4.6) from /home/nick/.local/lib/python3.6/site-packages/sphinxcontrib/tikz.py
# sphinx.builders.mobi (unknown version) from /home/nick/.local/lib/python3.6/site-packages/sphinx/builders/mobi.py
Traceback (most recent call last):
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/cmd/build.py", line 304, in build_main
app.build(args.force_all, filenames)
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/application.py", line 341, in build
self.builder.build_update()
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 347, in build_update
len(to_build))
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 415, in build
self.finish()
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/builders/html.py", line 749, in finish
self.finish_tasks.add_task(self.gen_indices)
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/util/parallel.py", line 51, in add_task
res = task_func()
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/builders/html.py", line 766, in gen_indices
self.write_genindex()
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/builders/html.py", line 828, in write_genindex
self.handle_page('genindex', genindexcontext, 'genindex.html')
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/builders/mobi.py", line 336, in handle_page
self.fix_genindex(addctx['genindexentries'])
File "/home/nick/.local/lib/python3.6/site-packages/sphinx/builders/mobi.py", line 315, in fix_genindex
for entryname, (links, subitems) in columns:
ValueError: too many values to unpack (expected 2)
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.