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

Documentation #50

Merged
merged 13 commits into from
Jul 31, 2024
Merged

Documentation #50

merged 13 commits into from
Jul 31, 2024

Conversation

mgax
Copy link
Member

@mgax mgax commented Jun 24, 2024

@mgax mgax marked this pull request as ready for review June 24, 2024 16:26
@mgax mgax requested a review from thibaudcolas June 24, 2024 16:26
@mgax mgax changed the title Docs: installation and usage Documentation Jun 24, 2024
Copy link
Member

@laymonage laymonage left a comment

Choose a reason for hiding this comment

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

Looks good for the most part!

docs/usage.rst Outdated Show resolved Hide resolved
docs/usage.rst Outdated Show resolved Hide resolved
docs/usage.rst Outdated Show resolved Hide resolved
docs/settings.rst Outdated Show resolved Hide resolved
docs/installation.rst Show resolved Hide resolved
docs/customization.rst Outdated Show resolved Hide resolved
docs/settings.rst Show resolved Hide resolved
docs/index.rst Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Just wondering, but how are you finding writing docs in RST?

Wagtail's own docs have been migrated from RST to Markdown using MyST to be more accessible to contributors.

In this package's case, I don't imagine there's going to be lots of pages, so I think using RST is fine. I'm just highlighting the option in case you'd prefer Markdown to RST.

Copy link
Member Author

Choose a reason for hiding this comment

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

I might have been exposed to RST before Markdown, and also assumed Sphinx only supported RST (I think this was the case for a long time). Had I known I could have used Markdown, I would have probably started down that route, I don't think there's anything in these docs that couldn't have been done with Markdown.

@laymonage laymonage self-assigned this Jul 24, 2024
docs/customization.rst Outdated Show resolved Hide resolved
demo/README.md Outdated Show resolved Hide resolved


class StreamField(WagtailStreamfield):
class StreamField(WagtailStreamField):
Copy link
Member

Choose a reason for hiding this comment

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

Curious to know what this override really is for, I don't understand why a demo project needs something like this 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, it's just to avoid migration noise from changes in the StreamField blocks definition. Originally I expected to be adding several block types in sequence to demo their features.

@@ -17,6 +17,7 @@ export WAGTAIL_NEWSLETTER_MAILCHIMP_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us1
export WAGTAIL_NEWSLETTER_FROM_NAME="My Newsletter"
export [email protected]

python -m pip install --editable='.[testing,mailchimp,mrml]'
Copy link
Member

Choose a reason for hiding this comment

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

Just realised we do have a CONTRIBUTING.md... But OK, I think this is a small worthwhile improvement 🙂

@mgax mgax merged commit fd0cd83 into main Jul 31, 2024
12 checks passed
@mgax mgax deleted the docs branch July 31, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Spike: content that is shown only on web / only in newsletters Write documentation
2 participants