-
Notifications
You must be signed in to change notification settings - Fork 120
Add titles to every readme page + add test to validate it #304
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
Conversation
a9eff10 to
34530dc
Compare
As part of the site revamp CMS (astro.build) we need titles on each page
34530dc to
0064f94
Compare
0064f94 to
de19eab
Compare
| uses: actions/checkout@v4 | ||
| - name: Install dependencies | ||
| run: | | ||
| pip install . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Do we need to setup python first? https://github.com/strands-agents/sdk-python/blob/main/.github/workflows/test-lint.yml#L59
| --- | ||
| title: Welcome | ||
| --- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the readme need a frontmatter? Is this actually included in the docs?
I think we should only be checking for files under docs
| @@ -1,3 +1,6 @@ | |||
| --- | |||
| title: Multiagent | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| title: Multiagent | |
| title: Multi-agent |
| --- | ||
| title: Fireworks AI | ||
| --- | ||
| # FireworksAI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be a space here or in the above title?
| @@ -1,3 +1,6 @@ | |||
| --- | |||
| title: Amazon AgentCore Memory | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it matter if this doesnt match the below top-level header?
| @@ -1,3 +1,6 @@ | |||
| --- | |||
| title: Overview | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can/should two pages have the same title?
|
I misunderstood what title is doing and need to re-think the approach here |
Description
I'm incrementally working towards getting our docs working with astro.build - to do so markdown files need a title front-matter.
Currently, mkdocs does this to derive the title:
However, astro.build desires the title to be in the front-matter; for compatibility with both, add the title from the nav and add it as a frontmatter meta property. Also added a test to enforce this for now
Type of Change
Motivation and Context
Incrementally let's docs work for both astro.build and mkdocs
Checklist
mkdocs serveAdditional Notes
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.