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

Staging environment for tutorials #52

Open
timClicks opened this issue Apr 14, 2020 · 5 comments
Open

Staging environment for tutorials #52

timClicks opened this issue Apr 14, 2020 · 5 comments

Comments

@timClicks
Copy link

Is it possible to set up a staging environment for viewing how draft tutorials are rendered on juju.is/tutorials before they're published?

@anthonydillon
Copy link
Collaborator

@nottrobin Do you think we could get staging to pull all tutorials including draft ones?

@nottrobin
Copy link
Contributor

@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?

@anthonydillon
Copy link
Collaborator

@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?

@Lukewh
Copy link
Contributor

Lukewh commented May 25, 2022

Could we do something like https://juju.is/tutorials/drafts/<discourse topic path>?

@nottrobin
Copy link
Contributor

nottrobin commented May 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants