-
Notifications
You must be signed in to change notification settings - Fork 25
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
Staging environment for tutorials #52
Comments
@nottrobin Do you think we could get staging to pull all tutorials including draft ones? |
@anthonydillon does Discourse have a concept of Drafts? Where is it? I can't see it at first glance. Or do you mean that we could maybe allow the loading of any Discourse topic before it's officially added to the index topic or something? |
@nottrobin Yeah your right, this may need to be developed. Could we add a section of drafts to the index and is only visible with the URL to the tutorial but not indexed or listed? |
Could we do something like |
Yeah that should be possible. The same pattern could be applied for docs. An issue is that the index topic is actually also how we find tutorials - as in the way we know that any given discourse topic is supposed to be a tutorial is through whether it's included in the index topic. Drafts like this would have to be category-based I guess? parser=TutorialParser(
api=DiscourseAPI(
base_url="https://discourse.charmhub.io/",
session=session,
api_key=DISCOURSE_API_KEY,
api_username=DISCOURSE_API_USERNAME,
get_topics_query_id=2,
),
index_topic_id=2628,
url_prefix=url_prefix,
drafts_category="tutorials"
), We should write a spec for this. Anyone willing to start one? I'm happy to contribute. |
Is it possible to set up a staging environment for viewing how draft tutorials are rendered on juju.is/tutorials before they're published?
The text was updated successfully, but these errors were encountered: