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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 100773c360ca736db4a8e556dcb07ade0d21ad9edbd77c90dc47f22e3a420ab7 |
|
MD5 | ed64793db05281b5d646a8dcedb0dd60 |
|
BLAKE2b-256 | 87bda7434316c116238ca4285e3501e52119f11d47283d16a736a9937718df2f |
Hashes for fiduswriter_gitrepo_export-3.11.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db65fe0fd151cd742be33e8f69de8218ecf133632255ed9bd981eba664f9e460 |
|
MD5 | 8acc35847194c62bb8514d166cc8caa9 |
|
BLAKE2b-256 | 804705c57dfb4fa44e5ae69463ce9448ca83d1b9b0221c1958c7b5257653d04c |