A Fidus Writer plugin to allow publishing of books to a Gitlab/Github repository.
Project description
fiduswriter-gitrepo-export
A plugin to export books to GitLab/GitHub.
To install:
-
Make sure you have installed the
fiduswriter-books
plugin and you have updated bothfiduswriter
andfiduswriter-books
to the latest 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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa0c8d763812bc406e283813eda3297630909150d02c0ca72a89aeaa959cd48e |
|
MD5 | 8d73183129ec9ab3e03a90022573986d |
|
BLAKE2b-256 | 89f5e2bfeb185c17c77fd7ca708990503bf3b97efbf16c0e49fec3aaaed2eb9e |
Hashes for fiduswriter_gitrepo_export-3.11.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc5123fff5c90a5c26c377a40b9329d59c97007a804ec5a34a92ee59cdfea81 |
|
MD5 | f33ad9cd1319b4ffa9daf527ae3b82b7 |
|
BLAKE2b-256 | d231ceeaf76b9d4cabb0542db573b5f9e89fefad35e4b13d24f5db85b932799d |