content.py 814 B

1234567891011121314151617181920212223242526272829303132
  1. from typing import Dict
  2. from .section import Section
  3. from .sections import (action_events, audiovisual_elements, binding_properties, configuration_deployment, controls,
  4. data_elements, page_layout, styling_appearance, text_elements)
  5. from .tools import heading
  6. SECTIONS: Dict[str, Section] = {
  7. section.name: section
  8. for section in [
  9. text_elements,
  10. controls,
  11. audiovisual_elements,
  12. data_elements,
  13. binding_properties,
  14. page_layout,
  15. styling_appearance,
  16. action_events,
  17. configuration_deployment,
  18. ]
  19. }
  20. def create_overview() -> None:
  21. for section in SECTIONS.values():
  22. section.intro()
  23. def create_section(name: str) -> None:
  24. section = SECTIONS[name]
  25. heading(section.title)
  26. section.content()