============= Configuration ============= greatgramps is configured using a YAML file. Create a ``config.yml`` pointing at your GRAMPS database and listing the GRAMPS IDs of the root people you want to browse the tree as: .. code-block:: yaml db_path: /path/to/your/grampsdb/xxxxxxxx roots: - I0001 - I0002 The location of the config file must be set with an environment variable: .. code-block:: GREATGRAMPS_CONFIG=config.yml Config file reference ===================== Relative paths are resolved relative to the config file's directory. .. list-table:: :header-rows: 1 :widths: 20 10 15 * - Key - Required - Default * - ``db_path`` - yes - — * - ``roots`` - yes - — * - ``output_dir`` - no - ``www`` * - ``ancestry_tree_id`` - no - — * - ``templates_dir`` - no - — * - ``static_dir`` - no - — * - ``nav_pages`` - no - ``[people, places, events, census, cemeteries, birthdays, surnames]`` * - ``site_title`` - no - ``Family tree`` ``db_path`` ----------- Path to your GRAMPS sqlite database directory. ``roots`` --------- GRAMPS IDs of the people to build root views for. ``output_dir`` -------------- Directory to write the built site into. Defaults to ``www``. ``ancestry_tree_id`` -------------------- Ancestry.com tree ID, used to generate profile links for people in the tree. ``templates_dir`` ----------------- Directory of custom Chameleon templates. Any template found here takes precedence over the bundled one of the same name. See :doc:`../templates/index`. ``static_dir`` -------------- Directory of custom static files (CSS etc.). Files here are copied into the output on top of the bundled ones. See :doc:`../templates/index`. ``nav_pages`` ------------- Which pages to show in the nav bar alongside **Me**, and in what order. All pages are included by default; remove any that your database doesn't make use of. For example, omit ``cemeteries`` if you have no places of type Cemetery, or ``census`` if you have no census events: .. code-block:: yaml nav_pages: - people - places - events - birthdays - surnames ``site_title`` -------------- Title used in the HTML ``