Skip to content

Add naming conventions and faq to docs - #564

Merged
NickleDave merged 1 commit into
mainfrom
add-naming-conventions-and-faq-to-docs
Aug 17, 2022
Merged

NickleDave merged 1 commit into
mainfrom
add-naming-conventions-and-faq-to-docs

Conversation

@NickleDave

Copy link
Copy Markdown
Collaborator

Fixes #524 and #424.
Re #424, adding a separate FAQs page instead of extending how-tos, so that how-tos stay as detailed walkthroughs, and we can link to an FAQ from anywhere (as the Django docs do) even though the FAQ doesn't fit into the "four types of docs" schema

@NickleDave

Copy link
Copy Markdown
Collaborator Author

Note to self to credit @sthaar here for suggestions to docs

Adds a page on file naming conventions
to the reference section of the docs,
that we can link to from other pages
(as in #524)
and from error messages (see #525).

Also adds a page with Frequently Asked
Questions,
with information on how to annotate
data for use with `vak`
and links to other how-tos. Fixes #424.

Squashed commits:
- Add target to howto_user_annot.md

  Add target to header "spectrogram file naming conventions"
  so we can reference it from a separate page on
  file naming conventions.

- Add doc/reference/filenames.md

  that explicitly documents naming conventions,
  so that we can reference this elsewhere,
  as described in #524.

- Add doc/faq.md, fixes #424
- Add "getting help" to doc/index.md

  with link to just-added FAQ,
  as well as links to forum and issue tracker.

- Update 'support/contributing' section of README

  to match the "Getting Help" section
  on the index of the docs,
  with links to FAQ, forum, issue tracker,
  and additionally the contributing docs.

- Add faq to toctree in doc/index.md
- Add link to naming conventions in howto_user_annot callout
@NickleDave
NickleDave force-pushed the add-naming-conventions-and-faq-to-docs branch from c119c78 to 25cda36 Compare August 17, 2022 17:42
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #564 (25cda36) into main (2cf6ca6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #564   +/-   ##
=======================================
  Coverage   93.09%   93.09%           
=======================================
  Files          65       65           
  Lines        2288     2288           
=======================================
  Hits         2130     2130           
  Misses        158      158           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@NickleDave

Copy link
Copy Markdown
Collaborator Author

Just realized I didn't have ReadTheDocs build set up on pull requests. Merging and will fix any typos post-hoc.

@NickleDave
NickleDave merged commit 030922e into main Aug 17, 2022
@NickleDave

Copy link
Copy Markdown
Collaborator Author

@all-contributors please add @sthaar for docs

@NickleDave
NickleDave deleted the add-naming-conventions-and-faq-to-docs branch August 17, 2022 23:41
@allcontributors

Copy link
Copy Markdown
Contributor

@NickleDave

I've put up a pull request to add @sthaar! 🎉

NickleDave added a commit that referenced this pull request Aug 18, 2022
- Add custom exception `AudioFilenameNotFound`
- Have `audio_stem_from_path` raise this exception
  when it fails to find a valid audio format extension
  and then runs out of extensions to remove.
  The error clearly states that an audio filename
  was not found in the path, instead of short
  cryptic "unable to stem".
- Have `map_annoted_to_annot` look for this custom
  exception in a try-except block when it first
  creates the keys for the map.
  If we catch an AudioFilenameNotFound exception,
  then we raise a verbose ValueError
  explaining what happened, including both `audio_path`
  and the path to the annotation itself,
  and a link to the file naming convention page
  added in #564 and to the how-to-user-annotation-format
  page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: Better document naming convention

2 participants