Skip to content

docs: gallery, keywords page, and API docstrings - #143

Open
kdayday wants to merge 11 commits into
mainfrom
kd/docs_update
Open

docs: gallery, keywords page, and API docstrings#143
kdayday wants to merge 11 commits into
mainfrom
kd/docs_update

Conversation

@kdayday

@kdayday kdayday commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

View: https://sienna-platform.github.io/PowerGraphics.jl/previews/PR143/

Summary

  • Add a Reference Gallery of committed plot archetypes (demand, fuel, powerdata line/stack/stair/bar, dataframe) with API links, CSS layout, and docs/gallery/generate_gallery.jl to regenerate PNGs (closes Add a gallery in the docs #120).

  • Expand how-to/backends and welcome pages; add a dedicated Plot styling keywords reference; drop the empty Tutorials/examples stub from docs/make.jl.

  • Overhaul exported API docstrings (TYPEDSIGNATURES via DocStringExtensions) across call_plots.jl, label_utils.jl, definitions.jl, and report; keep Old PowerAnalytics symbols as bare code (no @extref) so docs build without warnonly.

  • regenerate gallery with julia --project=test docs/gallery/generate_gallery.jl

Needs to be followed by #142 after version update for PA

@kdayday
kdayday requested a review from Copilot July 24, 2026 19:57
@kdayday kdayday changed the title Kd/docs update docs: gallery, keywords page, and API docstrings Jul 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds and reorganizes documentation for PowerGraphics, including a new gallery of plot archetypes, a shared plot-keywords reference, and refreshed docstrings across the public plotting/reporting API to improve discoverability and reduce Documenter warnings.

Changes:

  • Added a docs “Gallery” page with CSS tiles and a Julia script to regenerate committed PNG examples.
  • Introduced a “Plot styling keywords” reference and expanded/renamed the backends/how-to docs; removed the empty tutorials examples stub.
  • Standardized/expanded docstrings across core API entry points and added DocStringExtensions templates for typed signatures.

Reviewed changes

Copilot reviewed 13 out of 22 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/PowerGraphics.jl Adds DocStringExtensions template and documents report in the main module.
src/label_utils.jl Refreshes label helper docstrings and links to the new plot-keywords reference.
src/definitions.jl Updates load_palette docstring and cross-references related docs.
src/call_plots.jl Overhauls plot function docstrings (arguments/keywords/see-also) for demand/dataframe/powerdata/results/fuel/save.
Project.toml Adds DocStringExtensions dependency and compat entry.
ext/WeaveExt.jl Removes redundant report docstring from the extension (now documented in the main module).
docs/src/tutorials/examples.md Removes empty/stub examples page.
docs/src/reference/plot_keywords.md Adds a central reference page for shared plot styling keywords.
docs/src/index.md Expands the docs landing page overview and navigation guidance.
docs/src/how_to_guides/backends.md Expands backend selection/saving/report guidance and updates page title/id.
docs/src/gallery/index.md Adds the new gallery page with image tiles and links into the API reference.
docs/src/assets/gallery.css Adds CSS styling for the gallery grid/cards.
docs/make.jl Adds PowerAnalytics interlinks, updates nav structure, and registers the gallery CSS asset.
docs/gallery/generate_gallery.jl Adds a script to regenerate committed gallery PNG assets from reproducible simulations/data.

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

Comment thread docs/src/gallery/index.md Outdated
Comment thread docs/src/index.md
Comment thread src/definitions.jl
Comment thread src/PowerGraphics.jl
kdayday and others added 3 commits July 24, 2026 14:18
… example

Force prettyurls and extensionless gallery API links so deployed docs match
local builds; split load_palette docstrings by method; align report example names.

Co-authored-by: Cursor <cursoragent@cursor.com>
Local file:// builds use public.html; CI prettyurls use public/; gallery cards no longer hardcode layout-sensitive API hrefs.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 24 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

docs/src/index.md:32

  • This sentence claims NREL was formerly known as the “National Laboratory of the Rockies”, which is inaccurate and likely to confuse readers. The previous wording (“National Renewable Energy Laboratory (NREL)”) is the correct expansion.
`PowerGraphics.jl` is part of the National Laboratory of the Rockies (formerly known as NREL)'s

Comment thread src/call_plots.jl Outdated
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.

Add a gallery in the docs

2 participants