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
Built Distribution
Hashes for fiduswriter-gitrepo-export-3.11.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da2e4ac06653c1df487abe074262fc2b9c7551bf8aff778fe5c905f7c90b31a |
|
MD5 | dec080082f3ac2a521f79f086fa51575 |
|
BLAKE2b-256 | e65cf2f1d989aa1cd521cb6cd0e4745d4afe85de1e362cd9630b7be3b45e0f7a |
Hashes for fiduswriter_gitrepo_export-3.11.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706422f8e8175ee6c578c2675a18e8baaaddedebc5de8f7a4f4735b564276e93 |
|
MD5 | c4eadacb8e184829d6d96ae56feb7158 |
|
BLAKE2b-256 | 7e9188148cdd5fb8ca1ffc6c21ec9b6b190021716c90cafd967a1a0c44d768c0 |