Skip to content

MHPY-10 documentation#8

Open
lennertvandevelde wants to merge 13 commits into
mainfrom
mhpy-10-documentation
Open

MHPY-10 documentation#8
lennertvandevelde wants to merge 13 commits into
mainfrom
mhpy-10-documentation

Conversation

@lennertvandevelde

@lennertvandevelde lennertvandevelde commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

Documentation generated with https://vemel.github.io/handsdown/.

@maartends maartends requested review from maartends and spacid April 6, 2023 08:17

@maartends maartends left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is - or will be - a public library, I would definitely include the README as it was before as well: the "Usage" and "Synopsis" sections provide a useful introduction to the library.

The title of the README should best remain "MediaHaven Python Library"

@maartends maartends left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread README.md Outdated
Co-authored-by: Maarten <763374+maartends@users.noreply.github.com>

@spacid spacid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which version of handsdown was used to generate the docs?

It might be advised to:

  • Add the handsdown library in the requirements-dev.txt file.
  • Add some information about how to generate the docs in the README.

Comment thread generate_doc.sh
@@ -0,0 +1,6 @@
#!/bin/bash

handsdown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
handsdown
handsdown mediahaven

Only create docs for the files in the mediahaven folder. Without it, it also tried to generate docs for certain packages in my venv folder.

Comment thread generate_doc.sh
#!/bin/bash

handsdown
mv docs/README.md .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This moves a generated README.md file to the root folder, essentially overwriting the existing README file. This is not desired.

Comment thread generate_doc.sh
Comment on lines +5 to +6
sed -i 's/mediahaven\//docs\/mediahaven\//g' README.md
find docs/ -type f -exec sed -i 's/\.\.\/README\.md/..\/..\/README.md/g' {} \; No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not moving the README file makes these replace actions unnecessary I assume?

@spacid

spacid commented Jun 28, 2023

Copy link
Copy Markdown
Contributor

Note: the docs needs to be remade because of merge of https://github.com/viaacode/mediahaven-python/pull/10

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.

3 participants