Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcpage opened this issue Aug 10, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@marcpage
Copy link
Owner

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)
@marcpage marcpage added the enhancement New feature or request label Aug 10, 2024
@marcpage marcpage added this to the General Population Usability milestone Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant