Cat Feeder  1.0.0
The Cat feeder project
Loading...
Searching...
No Matches
rapidoc_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: rapidoc_constants.py
14# CREATION DATE: 26-11-2025
15# LAST Modified: 14:44:55 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 RapiDoc documentation provider.
21# // AR
22# +==== END CatFeeder =================+
23"""
24
25from .. import docs_constants as DOCS_CONST
26
27# RapiDoc configuration
28RAPIDOC_URL: str = "/rapidoc"
29RAPIDOC_CDN_VERSION: str = DOCS_CONST.RAPIDOC_CDN_VERSION
30RAPIDOC_CDN_URL: str = f"https://unpkg.com/rapidoc@{RAPIDOC_CDN_VERSION}/dist/rapidoc-min.js"
31
32# RapiDoc layout options: "row", "column", "focused"
33RAPIDOC_LAYOUT: str = "row"
34
35# RapiDoc theme: "light", "dark"
36RAPIDOC_THEME: str = "dark"
37
38# RapiDoc render style: "read", "view", "focused"
39RAPIDOC_RENDER_STYLE: str = "view"
40
41# RapiDoc schema style: "tree", "table"
42RAPIDOC_SCHEMA_STYLE: str = "tree"
43
44# Additional RapiDoc options
45RAPIDOC_OPTIONS: dict = {
46 "sort-tags": "true",
47 "sort-endpoints-by": "path",
48 "show-header": "true",
49 "allow-authentication": "true",
50 "allow-server-selection": "true",
51 "allow-api-list-style-selection": "true",
52 "show-info": "true",
53 "show-components": "true",
54 "response-area-height": "400px",
55 "fill-request-fields-with-example": "true",
56 "persist-auth": "true",
57}