Skip to content

docs: update front-page example to use table style - #1579

Open
ChenfromChina123 wants to merge 2 commits into
python-openxml:masterfrom
ChenfromChina123:docs/frontpage-table-style
Open

docs: update front-page example to use table style#1579
ChenfromChina123 wants to merge 2 commits into
python-openxml:masterfrom
ChenfromChina123:docs/frontpage-table-style

Conversation

@ChenfromChina123

Copy link
Copy Markdown

What does this PR do?

Updates the front-page example so the produced table matches the rendered example image. The default table style changed after styles support was added in 0.8.0.

Closes #164

Changes

  • docs/index.rst: pass style='Light Shading Accent 1' to add_table, as suggested by the maintainer in the issue discussion.

Verification

  • docutils.core.publish_doctree parses the updated index.rst without errors.

ChenfromChina123 and others added 2 commits August 10, 2026 22:34
The example calls add_picture('monty-truth.png') which raises
FileNotFoundError when the file is not present in the working
directory. Wrap it in a try/except so the example runs out of
the box.

Closes python-openxml#128

Co-Authored-By: AtomCode (deepseek-v4-flash) <[email protected]>
The front-page example now passes the 'Light Shading Accent 1' table
style to add_table so the produced table matches the rendered example
image.

Closes python-openxml#164

Co-Authored-By: AtomCode (deepseek-v4-flash) <[email protected]>
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.

docs: Update front-page example for table style

1 participant