Cat Feeder  1.0.0
The Cat feeder project
Loading...
Searching...
No Matches
rapipdf_constants.py
Go to the documentation of this file.
1r"""
2# +==== BEGIN CatFeeder =================+
3# LOGO:
4# ..............(..../\
5# ...............)..(.')
6# ..............(../..)
7# ...............\‍(__)|
8# Inspired by Joan Stark
9# source https://www.asciiart.eu/
10# animals/cats
11# /STOP
12# PROJECT: CatFeeder
13# FILE: rapipdf_constants.py
14# CREATION DATE: 26-11-2025
15# LAST Modified: 14:45:15 19-12-2025
16# DESCRIPTION:
17# This is the backend server in charge of making the actual website work.
18# /STOP
19# COPYRIGHT: (c) Cat Feeder
20# PURPOSE: Constants for RapiPDF documentation provider.
21# // AR
22# +==== END CatFeeder =================+
23"""
24
25from ...utils.constants import ASSETS_DIRECTORY
26from .. import docs_constants as DOCS_CONST
27
28# RapiPDF configuration
29RAPIPDF_URL: str = "/rapipdf"
30RAPIPDF_CDN_JS_ENDPOINT: str = "/rapipdf.min.js"
31RAPIPDF_CDN_VERSION: str = DOCS_CONST.RAPIPDF_CDN_VERSION
32# Use local hosted version - download from: https://cdn.jsdelivr.net/npm/rapipdf
33RAPIPDF_CDN_JS: str = str(ASSETS_DIRECTORY / "js" / "rapipdf.min.js")
34
35# RapiPDF style: "light", "dark"
36RAPIPDF_STYLE: str = "dark"
37
38# RapiPDF button label
39RAPIPDF_BUTTON_LABEL: str = "Generate PDF Documentation"
40
41# RapiPDF configuration options
42RAPIPDF_OPTIONS: dict = {
43 "include-api-list": True,
44 "include-api-details": True,
45 "include-security": True,
46 "pdf-title": "API Documentation",
47 "pdf-footer-text": "Generated with RapiPDF",
48 "pdf-primary-color": "#4A90E2",
49 "pdf-alternate-color": "#F5F5F5",
50}