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
). -
Enter the configuration file in an editor. If you have installed the Snap, you do this by running
sudo fiduswriter.configure
. Otherwise open the fileconfiguration.py
in a text editor. -
The default maximum size of a book is 2.5 MB. If some of your files will be larger than that, adjust
DATA_UPLOAD_MAX_MEMORY_SIZE
to something higher, for example 10MiB::
DATA_UPLOAD_MAX_MEMORY_SIZE = 10485760
- Add "gitrepo_export" to
INSTALLED_APPS
.
For GitHub
6a. Add "allauth.socialaccount.providers.github" to INSTALLED_APPS
.
7a. Add repo rights for the github connector like this::
SOCIALACCOUNT_PROVIDERS = {
'github': {
'SCOPE': [
'repo',
'user:email',
],
}
}
8a. Exit the editor and save the configuration file.
9a. Set up GitHub as one of the connected login options. See instructions here: https://docs.allauth.org/en/latest/socialaccount/providers/github.html . The callback URL will be in the format https://DOMAIN.NAME/api/github/github/login/callback/
For GitLab
6b. Add "allauth.socialaccount.providers.gitlab" to INSTALLED_APPS
.
7b. Add repo rights for the gitlab connector like this::
SOCIALACCOUNT_PROVIDERS = {
'gitlab': {
'SCOPE': [
'api',
],
}
}
8b. Exit the editor and save the configuration file.
9b. Set up GitLab as one of the connected login options. See instructions here: https://docs.allauth.org/en/latest/socialaccount/providers/gitlab.html . The callback URL will be in the format https://DOMAIN.NAME/api/gitlab/gitlab/login/callback/
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
File details
Details for the file fiduswriter_gitrepo_export-4.0.0.tar.gz
.
File metadata
- Download URL: fiduswriter_gitrepo_export-4.0.0.tar.gz
- Upload date:
- Size: 36.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ba4eb7a85977ca4ee80910346e6c9b5d94dc1d49932c03f080b25a091420e1c5
|
|
MD5 |
3863b139fb230c564c6670cf4a6800e0
|
|
BLAKE2b-256 |
3a6d9d472fa9cad16aec7518125a1cd783acd29100d1bf612e7d9ce45a9b66d1
|
File details
Details for the file fiduswriter_gitrepo_export-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: fiduswriter_gitrepo_export-4.0.0-py3-none-any.whl
- Upload date:
- Size: 52.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
017c881caa33509ae7db84f8cece63dd502720f99d1f27c44d8251eff056eee4
|
|
MD5 |
1eeacdb0b2b9869e83890f9098e8956e
|
|
BLAKE2b-256 |
b836c0e5137b9ed181ee6247f51d8edca1cc1d1fe1c22483aaeacd8e331cd4f7
|