Skip to content

Update and restructure PostgreSQL integration docs. - #42

Merged
David Pine (IEvangelist) merged 20 commits into
microsoft:mainfrom
alistairmatthews:restructure-postgresql-integration-docs
Dec 3, 2025
Merged

David Pine (IEvangelist) merged 20 commits into
microsoft:mainfrom
alistairmatthews:restructure-postgresql-integration-docs

Conversation

@alistairmatthews

Copy link
Copy Markdown
Collaborator

The existing PostgreSQL integration document is comprehensive but difficult for beginners. This PR is intended to keep the comprehensive information but make it easier for those who want to get going quickly.

This PR:

  • Splits the large integration doc into two: Hosting and Client.
  • Adds a getting started short tutorial.
  • Adds a getting started tutorial for both hosting and client integration.
  • Adds a Properties of the PostgreSQL resources section to the client reference docs. This describes what configuration values are injected by the WithReference() method. I've put this in the Client doc, where you might use them, but added a Note and a link in the Hosting doc.

Addresses: #30, #9

This was referenced Nov 13, 2025
@IEvangelist

Copy link
Copy Markdown
Member

This is a good start, let's make the following updates:

  • The "get started" article per integration should be simplified so that it's just the brief intro, hosting integration package install instructions, the primary API to add the resource, link to advanced configs and scenarios (hosting reference it's called now), details of what config is injected, and then a client section that has a language pivot. C#, Python, and JS...

No need for the client standalone article.

@alistairmatthews

Copy link
Copy Markdown
Collaborator Author

This is a good start, let's make the following updates:

  • The "get started" article per integration should be simplified so that it's just the brief intro, hosting integration package install instructions, the primary API to add the resource, link to advanced configs and scenarios (hosting reference it's called now), details of what config is injected, and then a client section that has a language pivot. C#, Python, and JS...

No need for the client standalone article.

David Pine (@IEvangelist) - thanks very much. I've implemented all that in the Get started article. The Python pivot may be a little sparse. I haven't deleted the Client integration document yet - could you confirm that you don't mind losing sections like Configuration, Client integration health checks and so on?

@alistairmatthews

Copy link
Copy Markdown
Collaborator Author
  • Pivots for Python and JavaScript completed.
  • Complete, basic examples are included for both of these.
  • I've kept the separate client integration article. Fowler was in favour.
  • I've kept the screenshots at the end. Some people didn't like them but, imho, they provide a good payoff.

David Pine (@IEvangelist), David Fowler (@davidfowl) could you see what you think? Ready to propagate this structure to the other integrations when you're happy. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR restructures the PostgreSQL integration documentation to improve accessibility for beginners while maintaining comprehensive technical information. The original single documentation file has been split into separate hosting and client integration guides, with a new getting started tutorial added.

Key changes:

  • Split PostgreSQL documentation into hosting and client integration references
  • Added a getting started guide with examples for C#, Python, and JavaScript
  • Created a dedicated Community Toolkit extensions document
  • Added a "Properties of the PostgreSQL resources" reference section

Reviewed changes

Copilot reviewed 4 out of 12 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
postgres-host.mdx Renamed and restructured hosting integration reference with updated title and description
postgres-client.mdx New client integration reference documentation with configuration details and property tables
postgres-get-started.mdx New multi-language getting started guide with step-by-step tutorials
postgresql-extensions.mdx New community extensions documentation covering DbGate and Adminer management UIs
sidebar.topics.ts Updated navigation structure to reflect the new four-document organization
package-lock.json Added "peer": true properties to various dependencies (potentially unrelated to documentation changes)
Files not reviewed (1)
  • src/frontend/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)

src/frontend/src/content/docs/integrations/databases/postgres/postgres-host.mdx:3

  • Spelling error: "confgure" should be "configure".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/frontend/package-lock.json Resolved
@alistairmatthews

Copy link
Copy Markdown
Collaborator Author

David Pine (@IEvangelist) do you know why the AppHost test fails with an error from Lunaria?

@IEvangelist

Copy link
Copy Markdown
Member

David Pine (@IEvangelist) do you know why the AppHost test fails with an error from Lunaria?

Yes, it's an issue with the monorepo setup. And the building of the static site from within the AppHost specifically (since we do some copy/build stuff). I've been back and forth on a fix. I'm ignoring that for now.

@IEvangelist

David Pine (IEvangelist) commented Dec 2, 2025 •

Copy link
Copy Markdown
Member

This is looking good! A few nits, set page navigation limits:

  • The postgres-get-started.mdx should have frontmatter of prev: false to avoid this:

    image
  • Likewise, the postgresql-extensions.mdx should set next: false to avoid this

    image

In the postgres-get-started.mdx, I see that the sidebar has headings for all languages...instead they should be generic-shared headings with the pivot content under each section. In other words, no should ever contain a heading, as they're conditionally rendered and we don't update the sidebar (although, that might change).

Today, for example, if you have C# selected and click on the Node.js or Python headings here - they do nothing.

image

Also, I thought we were not going to have the running solution section with the dashboard screenshots. Too much to maintain, and not really useful as the get started is only conceptual in nature, not really giving users enough code to have a fully running example as depicted.

Finally, the Next steps section, the titles of the link cards are too long. The description should have the details of what they're clicking into and the title should be shorter to avoid tiny right-arrow SVGs:

image

@alistairmatthews

Alistair Matthews (alistairmatthews) commented Dec 2, 2025 •

Copy link
Copy Markdown
Collaborator Author

This is looking good! A few nits, set page navigation limits:

  • The postgres-get-started.mdx should have frontmatter of prev: false to avoid this:
    image
  • Likewise, the postgresql-extensions.mdx should set next: false to avoid this
    image

Thanks. Fixed those and put them on my checklist for future articles.

In the postgres-get-started.mdx, I see that the sidebar has headings for all languages...instead they should be generic-shared headings with the pivot content under each section. In other words, no should ever contain a heading, as they're conditionally rendered and we don't update the sidebar (although, that might change).

Today, for example, if you have C# selected and click on the Node.js or Python headings here - they do nothing.

image Also, I thought we were not going to have the running solution section with the dashboard screenshots. Too much to maintain, and not really useful as the get started is only conceptual in nature, not really giving users enough code to have a fully running example as depicted.

OK, thanks. I'll have to adjust the titles so they work for all three languages. This one isn't fixed yet.

Finally, the Next steps section, the titles of the link cards are too long. The description should have the details of what they're clicking into and the title should be shorter to avoid tiny right-arrow SVGs:

image

Fixed! I've changed them to use "Understand..." because it was shorter and because David Fowler (@davidfowl) said a couple of weeks ago that he likes the division between "I want to do something..." and "I want to understand something..." articles. I think all three are the latter.

@alistairmatthews

Copy link
Copy Markdown
Collaborator Author

In the postgres-get-started.mdx, I see that the sidebar has headings for all languages...instead they should be generic-shared headings with the pivot content under each section. In other words, no should ever contain a heading, as they're conditionally rendered and we don't update the sidebar (although, that might change).

All fixed.

Also, I thought we were not going to have the running solution section with the dashboard screenshots. Too much to maintain, and not really useful as the get started is only conceptual in nature, not really giving users enough code to have a fully running example as depicted.

Removed. I think that's everything.

@IEvangelist
David Pine (IEvangelist) merged commit e3393cf into microsoft:main Dec 3, 2025
@alistairmatthews
Alistair Matthews (alistairmatthews) deleted the restructure-postgresql-integration-docs branch December 4, 2025 09:24
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.

3 participants