geotribu_cli.constants module#

Package constants.

class geotribu_cli.constants.GeotribuDefaults(git_base_url_organisation='https://github.com/geotribu/', site_base_url='https://geotribu.fr/', site_git_default_branch='master', site_git_project='website', site_search_index='search/search_index.json', cdn_base_url='https://cdn.geotribu.fr/', cdn_base_path='img', cdn_search_index='search-index.json', comments_base_url='https://comments.geotribu.fr/', rss_path_created='feed_rss_created.xml', rss_path_updated='feed_rss_updated.xml', images_body_extensions=('.png', '.jpg', '.jpeg', '.webp'), images_body_dimensions_max=('.png', '.jpg', '.jpeg', '.webp'), images_header_extensions=('.png', '.jpg', '.jpeg'), images_header_dimensions_ratio=320000, images_icon_extensions=('.png', '.jpg', '.jpeg', '.webp'), images_icon_dimensions_ratio=320000, geotribu_working_folder=PosixPath('/home/runner/.geotribu'), mastodon_base_url='https://mapstodon.space/', template_article='/articles/templates/template_article.md', template_rdp='/rdp/templates/template_rdp.md', template_rdp_news='/rdp/templates/template_rdp_news.md')#

Bases : object

Defaults settings for Geotribu.

__init__(git_base_url_organisation='https://github.com/geotribu/', site_base_url='https://geotribu.fr/', site_git_default_branch='master', site_git_project='website', site_search_index='search/search_index.json', cdn_base_url='https://cdn.geotribu.fr/', cdn_base_path='img', cdn_search_index='search-index.json', comments_base_url='https://comments.geotribu.fr/', rss_path_created='feed_rss_created.xml', rss_path_updated='feed_rss_updated.xml', images_body_extensions=('.png', '.jpg', '.jpeg', '.webp'), images_body_dimensions_max=('.png', '.jpg', '.jpeg', '.webp'), images_header_extensions=('.png', '.jpg', '.jpeg'), images_header_dimensions_ratio=320000, images_icon_extensions=('.png', '.jpg', '.jpeg', '.webp'), images_icon_dimensions_ratio=320000, geotribu_working_folder=PosixPath('/home/runner/.geotribu'), mastodon_base_url='https://mapstodon.space/', template_article='/articles/templates/template_article.md', template_rdp='/rdp/templates/template_rdp.md', template_rdp_news='/rdp/templates/template_rdp_news.md')#
cdn_base_path: str = 'img'#
cdn_base_url: str = 'https://cdn.geotribu.fr/'#
cdn_search_index: str = 'search-index.json'#
property cdn_search_index_full_url: str#

Returns CDN search index full URL.

Renvoie:

URL as string

Type renvoyé:

str

comments_base_url: str = 'https://comments.geotribu.fr/'#
geotribu_working_folder: Path = PosixPath('/home/runner/.geotribu')#
git_base_url_organisation: str = 'https://github.com/geotribu/'#
images_body_dimensions_max: tuple = ('.png', '.jpg', '.jpeg', '.webp')#
images_body_extensions: tuple = ('.png', '.jpg', '.jpeg', '.webp')#
images_header_dimensions_ratio: int = 320000#
images_header_extensions: tuple = ('.png', '.jpg', '.jpeg')#
images_icon_dimensions_ratio: int = 320000#
images_icon_extensions: tuple = ('.png', '.jpg', '.jpeg', '.webp')#
mastodon_base_url: str = 'https://mapstodon.space/'#
property rss_created_full_url: str#

Returns website RSS full URL for latest created contents.

Renvoie:

URL as string

Type renvoyé:

str

rss_path_created: str = 'feed_rss_created.xml'#
rss_path_updated: str = 'feed_rss_updated.xml'#
site_base_url: str = 'https://geotribu.fr/'#
site_git_default_branch: str = 'master'#
site_git_project: str = 'website'#
site_git_source_base_url(mode='blob', url_path='')#

Returns website git source URL in three flavors: blob, edit or raw.

Paramètres:

mode (Literal['blob', 'edit', 'raw']) – display mode for source. Defaults to « blob ».

Renvoie:

URL as string

Type renvoyé:

str

site_search_index: str = 'search/search_index.json'#
property site_search_index_full_url: str#

Returns website search index full URL.

Renvoie:

URL as string

Type renvoyé:

str

template_article: str = '/articles/templates/template_article.md'#
template_rdp: str = '/rdp/templates/template_rdp.md'#
template_rdp_news: str = '/rdp/templates/template_rdp_news.md'#