Skip to main content

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:

  1. Make sure you have installed the fiduswriter-books plugin and you have updated both fiduswriter and fiduswriter-books to the latest patch release.

  2. Install this plugin (for example by running pip install fiduswriter-gitrepo-export).

  3. 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:

  1. 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/)

  2. Go to the books overview page.

  3. Enter a book to set the gitrepo settings for the book.

  4. Select the book in the overview and export to gitrepo via the dropdown menu.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fiduswriter-gitrepo-export-3.11.4.tar.gz (34.6 kB view details)

Uploaded Source

File details

Details for the file fiduswriter-gitrepo-export-3.11.4.tar.gz.

File metadata

  • Download URL: fiduswriter-gitrepo-export-3.11.4.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.6.1 requests/2.24.0 setuptools/65.6.3 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for fiduswriter-gitrepo-export-3.11.4.tar.gz
Algorithm Hash digest
SHA256 323adbd4eddca8d56e811c941c4d7de891f1473cfa044c89c792a8b97cecb1de
MD5 55f1feed709c6d636515a4269c439d90
BLAKE2b-256 8e1b0b646b7c5d02eb15a68c182d5f4830b011cd71dbbab6988d6d6d82c392d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page