Skip to content

Infer values and allow command line overrides of values in genweb.yml #44

Description

@marcpage

We specify several variables in ~/.devopsdriver/genweb.yml (Linux path). These could be inferred or overridden by passing them on the command line.

We should also move the people-identifier folders under a root-level folder called people.

Variables we can infer (or pass on the command line or set in the genweb.yml file)

  • gedcom_path: If this is not specified, we should search the artifacts directory for *.ged and load the latest (printing out the full path we are using)
  • metadata_yaml: There should be a metadata directory at the root that contains Yaml files that can be concatenated (alphabetically sorted). Should be formatted like metadata 2024-09-01.yml. This will allow us to have multiple, smaller Yaml files and contents of the latest Yaml file would take precedence over "older" named files.
  • alias_path: File named aliases.yml in the root of the artifacts directory

Variables we cannot infer (pass on the command line or specify in the genweb.yml file)

  • site_dir: This is the output dir.
  • binaries_dir: This should be artifacts_dir. We will search in this directory for inferred files/directories above.

Proposed Directory Structure

Pass artifacts_dir (formerly binaries_dir) and site_dir on command line, or in ~/.devopsdriver/genweb.yml.

  • %artifacts_dir%/
    • artifacts/ (recommended, but not required, location for pictures, movies, mini-websites, etc.)
    • export 2024-02-01.ged (name doesn't matter, latest modified *.ged in %artifacts_dir% is used)
    • aliases.yml (name actually matters)
    • metadata/
      • 2024-02-08 Original.yml (the original metadata file)
      • 2024-06-10 Updates.yml (updates since the original, values take precedence over original)
      • 2024-09-16 Updates.yml (most recent updates. Names don't matter other than sortable and highest sorted takes precedence)
  • %site_dir%/
    • export 2024-02-01.ged (just a copy from %artifacts_dir%/)
    • aliases.yml (just a copy from %artifacts_dir%/)
    • metadata/
      • 2024-02-08 Original.yml (just a copy from %artifacts_dir%/)
      • 2024-06-10 Updates.yml (just a copy from %artifacts_dir%/)
      • 2024-09-16 Updates.yml (just a copy from %artifacts_dir%/)
    • people/ (people moved deeper to clean up root dir)
      • SmithJohnE2004JonesSalleyF1978/ (people-id folders exist here)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions