A Fidus Writer plugin to allow publishing of books to a Gitlab/Github repository
Project description
A plugin to export books to GitLab/GitHub.
This plugin is currently in early-stage development. It has not reached production level quality yet.
To install:
Make sure you have installed the fiduswriter-books plugin and you have updated both fiduswriter and fiduswriter-books to the latest 3.9.x patch release.
Install this plugin (for example by running pip install fiduswriter-gitrepo-export).
In your configuration.py file, add “gitrepo_export” and “allauth.socialaccount.providers.github” and/or “allauth.socialaccount.providers.gitlab” to INSTALLED_APPS.
4a. Set up GitHub as one of the connected login options. See instructions here: https://django-allauth.readthedocs.io/en/latest/providers.html#github . The callback URL will be in the format https://DOMAIN.NAME/api/github/github/login/callback/
5a. In your configuration.py file, make sure to add repo rights for the github connector like this:
SOCIALACCOUNT_PROVIDERS = { 'github': { 'SCOPE': [ 'repo', 'user:email', ], } }
4b. Set up GitLab as one of the connected login options. See instructions here: https://django-allauth.readthedocs.io/en/latest/providers.html#gitlab . The callback URL will be in the format https://DOMAIN.NAME/api/gitlab/gitlab/login/callback/
5b. In your configuration.py file, make sure to add repo rights for the gitlab connector like this:
SOCIALACCOUNT_PROVIDERS = { 'gitlab': { 'SCOPE': [ 'api', ], } }
To use:
Login to your Fidus Writer instance using GitHub/GitLab, or login with a regular account and connect a Gitlab/Github account on the profile page (https://DOMAIN.NAME/user/profile/)
Go to the books overview page.
Enter a book to set the gitrepo settings for the book.
Select the book in the overview and export to gitrepo via the dropdown menu.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for fiduswriter-gitrepo-export-3.10.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 184c6d70ebed259f2ee19af9d1835362d8e6e62e0672b682f2564978dc5494e4 |
|
MD5 | c817e81a8975426a5bb6d8561ec779cb |
|
BLAKE2b-256 | e8739c4887263f9230e809ffe634453ccc31298cb0da8d356403bc67f4f2af48 |