main.ymlΒΆ

---
application_id: "web-app-docs"
entity_name: "{{ application_id | entity_name }}"

DOCS_CONTAINER: "{{ lookup('config', application_id, 'services.' ~ entity_name ~ '.name') }}"
DOCS_SERVICE: "{{ entity_name }}"

DOCS_IMAGE: "{{ lookup('config', application_id, 'services.docs.image') }}"
DOCS_VERSION: "{{ lookup('config', application_id, 'services.docs.version') }}"
DOCS_SOURCE_REPO: "{{ lookup('config', application_id, 'services.docs.source_repository') }}"
DOCS_MERMAID_VERSION: "{{ lookup('config', application_id, 'services.docs.mermaid_version') }}"
DOCS_MERMAID_SHA256: "{{ lookup('config', application_id, 'services.docs.mermaid_sha256') }}"
DOCS_FETCH_INTERVAL: "{{ lookup('config', application_id, 'services.docs.fetch_interval') }}"
DOCS_SPHINX_PROJECT: "{{ lookup('config', application_id, 'services.docs.sphinx.project') }}"
DOCS_SPHINX_COPYRIGHT: "{{ lookup('config', application_id, 'services.docs.sphinx.copyright') }}"
DOCS_SPHINX_AUTHOR: "{{ lookup('config', application_id, 'services.docs.sphinx.author') }}"
DOCS_SPHINX_PROCESS_MB: "{{ lookup('config', application_id, 'services.docs.build.sphinx_process_mb') | int }}"
DOCS_SPHINX_OVERHEAD_MB: "{{ lookup('config', application_id, 'services.docs.build.sphinx_overhead_mb') | int }}"
DOCS_BUILD_MEM_MB: "{{ lookup('service_memory_mb', application_id, 'docs', 1.0) | int }}"
DOCS_BUILD_PARALLEL: "{{ [1, [2, ((DOCS_BUILD_MEM_MB | int) // ((DOCS_SPHINX_OVERHEAD_MB | int) + 2 * (DOCS_SPHINX_PROCESS_MB | int)))] | min] | max }}"
DOCS_BUILD_JOBS: "{{ [1, [(RESOURCE_HOST_CPUS | int // 2), ((DOCS_BUILD_MEM_MB | int) - (DOCS_BUILD_PARALLEL | int) * (DOCS_SPHINX_OVERHEAD_MB | int)) // ((DOCS_BUILD_PARALLEL
  | int) * (DOCS_SPHINX_PROCESS_MB | int))] | min] | max }}"
DOCS_I18N_PRELOAD_LANGUAGES: "{{ lookup('config', application_id, 'services.docs.i18n.preload_languages') }}"
DOCS_I18N_PRELOAD_PATHS: "{{ (DOCS_I18N_PRELOAD_LANGUAGES | reject('eq', HOST_LL) | map('regex_replace', '$', '/') | list) + (DOCS_I18N_PRELOAD_LANGUAGES | select('eq',
  HOST_LL) | map('regex_replace', '.+', '') | list) }}"
DOCS_PORT: "{{ lookup('config', application_id, 'services.docs.ports.internal.http') }}"
DOCS_LOCAL_BASE_URL: "http://{{ DOCKER_BIND_HOST }}:{{ lookup('config', application_id, 'services.docs.ports.local.http') }}"
DOCS_DATA_DIR: "/data"
DOCS_TOOLING_DIR: "{{ [ lookup('container', application_id, 'directories.instance'), 'sphinx' ] | path_join }}"
DOCS_SNAPSHOT_DIR: "/snapshot"
DOCS_SNAPSHOT_PATHS:
  - AGENTS.md
  - CHANGELOG.md
  - CODE_OF_CONDUCT.md
  - CONTRIBUTING.md
  - LICENSE.md
  - Makefile
  - README.md
  - SECURITY.md
  - SUPPORT.md
  - TODO.md
  - aliases
  - ansible.cfg
  - assets
  - cli
  - compose.yml
  - default.env
  - docs
  - group_vars
  - index.rst
  - inventories/bundles
  - inventories/development
  - library
  - locale
  - meta
  - playbook.yml
  - plugins
  - pyproject.toml
  - roles
  - scripts
  - skills
  - tasks
  - templates
  - tests
  - utils