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

Use page's category name instead of section for reporting issues. #140

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

jackorp
Copy link
Contributor

@jackorp jackorp commented Mar 25, 2024

Instead of trying to add sections, the _config.yml file already has needed category-name that seem to get mapped correctly onto individual sections, which means we don't have to keep the record of pages on each of content's .md file.

If we would want to be more fine-grained, we should be able to do that also via _config.yml by just appending the values for the specific subdirectory.

@@ -37,7 +37,7 @@
</div>

<a target="_blank" href="https://github.com/developer-portal/content/edit/master{{page.dir}}{{page.name}}" class="btn btn-default">Edit this page</a>
<a target="_blank" href="https://github.com/developer-portal/content/issues/new?title={{page.section}}:+{{page.subsection}}+{{page.name}}&body=Describe+the+problem" class="btn btn-default">Report an issue</a>
<a target="_blank" href="https://github.com/developer-portal/content/issues/new?title={{page.category-name}}:+{{page.subsection}}+{{page.name}}&body=Describe+the+problem" class="btn btn-default">Report an issue</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

Fabulous.

@pvalena
Copy link
Contributor

pvalena commented Mar 26, 2024

If we would want to be more fine-grained, we should be able to do that also via _config.yml by just appending the values for the specific subdirectory.

Let's do that, maybe later on. Seems like a simple implementation for someone who wants to play with it (and has some spare time).

@jackorp jackorp merged commit c160c36 into developer-portal:master Mar 26, 2024
@jackorp jackorp deleted the report_issue_with_category branch March 26, 2024 11:26
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.

None yet

2 participants