{% extends "base.html" %}
{#
Resolve the active project key injected by plugin.py.
Falls back to empty string if the key was never set (e.g. local dev
without a site_url or a labs_project config entry).
#}
{% set _active = config.extra.get("_labs_active_project", "") if config.extra else "" %}
{# ------------------------------------------------------------------ #}
{# Announce banner — project-aware #}
{# #}
{# Sites that need a custom banner should create main.html in their #}
{# custom_dir that extends "_rc_base.html" and overrides this block: #}
{# #}
{# {% extends "_rc_base.html" %} #}
{# {% block announce %} #}
{# Your message — link text #}
{# {% endblock %} #}
{# #}
{# Alternatively, set extra.rc_announce in mkdocs.yml for plain-text #}
{# or simple HTML banners that don't need full template control. #}
{# ------------------------------------------------------------------ #}
{% block announce -%}
{%- set _custom = config.extra.get("rc_announce", none) if config.extra else none -%}
{%- if _custom is not none -%}
{{- _custom | safe -}}
{%- elif _active == "app-connect" -%}
App Connect 2.0 BETA is here with more features and support for more CRMs!
Try it out
{%- elif _active == "design-system" -%}
The RingCentral Design System is now in public beta — share feedback on
GitHub Discussions
{%- endif -%}
{%- endblock %}
{# ------------------------------------------------------------------ #}
{# Footer #}
{# ------------------------------------------------------------------ #}
{% block footer %}
{#
Labs project registry.
Each entry:
key — matches what plugin.py injects as _labs_active_project
name — display name in the footer card
desc — one-line description
href — canonical public URL (used when this is NOT the active site)
badge — optional badge text ("New") or none/empty for no badge
#}
{% set _projects = [
{
"key": "app-connect",
"name": "App Connect",
"desc": "CRM integration for RingEX",
"href": "https://appconnect.labs.ringcentral.com/",
"badge": ""
},
{
"key": "rc-embeddable",
"name": "RC Embeddable",
"desc": "Embeddable RingCentral phone widget",
"href": "https://ringcentral.github.io/ringcentral-embeddable/",
"badge": ""
}
] %}
{% endblock %}