MCPcopy Index your code
hub / github.com/booktype/Booktype

github.com/booktype/Booktype @v2.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.4.0 ↗ · + Follow
3,925 symbols 13,800 edges 942 files 987 documented · 25%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Booktype

Booktype makes it easier and quicker for authors, companies and organisations to edit and publish books. It imports DOCX or EPUB files, converts them into single-source HTML for online editing and proofreading, and uses CSS Paged Media to produce good-looking output for print, the open web, and almost any ebook reader, in seconds. Booktype facilitates collaborative, agile production across time zones and borders.

Booktype is built on the Django web framework and many great Python libraries.

The Booktype user interface is being translated into many languages by our community of contributors. Your help with development or translation is always welcome!

Installation

Installation instructions for Booktype on GNU/Linux and OS X can be found in the Booktype user manual.

Files for installation using Docker can be found in the Booktype-docker repository.

More information

How to contribute

  1. Fork the booktype/Booktype repository. Please see GitHub help on forking or use this direct link to fork.
  2. Clone your fork to your local machine.
  3. Create a new local branch.
  4. Run tests and make sure your contribution works correctly.
  5. Create a pull request with details of your new feature, bugfix or other contribution.
  6. Sign and return the contributor agreement paperwork, either for an individual, or an entity such as a company, university or other organisation. This paperwork gives us the right to use your work in Booktype, and makes it clear that you retain ownership of the copyright in your contribution.

Testing

Booktype uses the py.test testing framework with the pytest-django plugin. It makes the testing process easier, and also provides the ability to run ready-made django (unittest) tests.

To run tests:

  1. Open a terminal and activate the virtual environment (Booktype must be installed).
  2. Go to (cd command) instance root (folder with manage.py and pytest.ini file).
  3. Run the py.test command.
  4. If you want pytest to print test coverage information, you should run py.test --cov-report term-missing --cov=path/to/Booktype. You can read more about coverage here: pytest-cov

License

Booktype is licensed under the GNU AGPL license.

Core symbols most depended-on inside this repo

push
called by 1263
lib/sputnik/redis-backuo.py
jQuery
called by 1069
lib/booktype/apps/core/static/core/js/jquery-1.9.1.js
find
called by 965
lib/booktype/apps/themes/finder.py
get
called by 722
lib/booktype/apps/edit/views.py
children
called by 231
lib/booktype/apps/edit/models.py
next
called by 226
lib/booki/editor/models.py
save
called by 225
lib/booktypecontrol/forms.py
invariant
called by 218
lib/booktype/apps/edit/static/edit/js/react/react.js

Shape

Function 2,269
Method 1,133
Class 516
Route 7

Languages

Python52%
TypeScript48%
PHP1%

Modules by API surface

lib/booktype/apps/edit/static/edit/js/react/react.js329 symbols
lib/booktype/apps/core/static/core/js/moment.min.js195 symbols
lib/booktype/apps/edit/static/edit/js/icejs/ice.js113 symbols
lib/booki/editor/models.py96 symbols
lib/booktype/apps/edit/channel.py85 symbols
lib/booktypecontrol/forms.py84 symbols
lib/booktype/apps/core/static/core/js/jquery-1.9.1.js80 symbols
lib/sputnik/redis-backuo.py71 symbols
lib/booktype/apps/core/static/core/js/interact.min.js65 symbols
lib/booktype/apps/core/static/core/js/jquery.mCustomScrollbar.concat.min.js58 symbols
lib/booktype/api/editor/views.py56 symbols
lib/booktypecontrol/views.py55 symbols

For agents

$ claude mcp add Booktype \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact