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

🎨 Update docs theme and add tutorial #1184

Merged
merged 22 commits into from
Aug 14, 2024
Merged

🎨 Update docs theme and add tutorial #1184

merged 22 commits into from
Aug 14, 2024

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented May 27, 2024

  • Update the theme to furo and colors to match new branding
  • Restructure toc-trees, to make the documentation easier to navigate
  • Improve landing page
    • Improve top "hero" section
    • Add feature section
    • move examples to tutorial
  • Add tutorial page, with worked example covering most directives

See: https://sphinx-needs--1184.org.readthedocs.build/en/1184/

@chrisjsewell chrisjsewell changed the title 👌 Multi-theme support 🎨 Update docs theme May 27, 2024
Copy link

codecov bot commented May 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.44%. Comparing base (1de1a7a) to head (212d955).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1184   +/-   ##
=======================================
  Coverage   86.44%   86.44%           
=======================================
  Files          56       56           
  Lines        6501     6501           
=======================================
  Hits         5620     5620           
  Misses        881      881           
Flag Coverage Δ
pytests 86.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrisjsewell chrisjsewell force-pushed the new-doc-theming branch 5 times, most recently from 716fbf7 to fe6ed55 Compare June 3, 2024 07:35
@chrisjsewell chrisjsewell changed the title 🎨 Update docs theme 🎨 Update docs theme and add tutorial Jun 3, 2024
@chrisjsewell chrisjsewell force-pushed the new-doc-theming branch 2 times, most recently from 06444a9 to 74e25e1 Compare June 3, 2024 07:48
@chrisjsewell chrisjsewell force-pushed the new-doc-theming branch 2 times, most recently from 1f82ced to 24e8971 Compare June 13, 2024 11:58
@chrisjsewell chrisjsewell marked this pull request as ready for review June 28, 2024 17:38
@chrisjsewell chrisjsewell requested a review from danwos June 28, 2024 18:35
docs/tutorial.rst Outdated Show resolved Hide resolved
Copy link
Member

@danwos danwos left a comment

Choose a reason for hiding this comment

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

Thanks for the changes.
Haven't done a full review yet, but I noticed that "useblocks" is not written always in the same way.
Sometimes it's "UseBlocks" or "Useblocks".
But it should be in all cases "useblocks" :)

@danwos
Copy link
Member

danwos commented Aug 6, 2024

It looks like the upper border is missing on need objects:
image

Deactivating this CSS property make it look beautiful:
image

In this case, we also get some border-radius, which looks nice:
image

Copy link
Member

@danwos danwos left a comment

Choose a reason for hiding this comment

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

Great work, like the changes a lot.

Have 1-2 findings.

.. toctree::
:caption: Need creation
Copy link
Member

Choose a reason for hiding this comment

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

I would remove the caption, or set it as sub-title in front of "Directives for creating and modifying needs:"

Currently, it looks like we have two introductions to the toc table:
image

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member

Choose a reason for hiding this comment

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

This file looks damaged.
Downloading and opening this gives me this error:
image

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

docs/filter.rst Outdated
Python 2.7 environment.


.. need-example:: Filter result as table*
Copy link
Member

Choose a reason for hiding this comment

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

I guess the * is not needed

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed


.. need-example:: Filter result as diagram

.. needflow::
Copy link
Member

Choose a reason for hiding this comment

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

This example has no results.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

:columns: id,type,title,status
:style: table

The default style for the table is a simple HTML table, but we can also use the ``datatables`` style to add dynamic pagination, filtering and sorting,
Copy link
Member

@danwos danwos Aug 6, 2024

Choose a reason for hiding this comment

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

I think the default style is the datatables style, or have this changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

nope you are correct, now fixed

@chrisjsewell
Copy link
Member Author

It looks like the upper border is missing on need objects:
Deactivating this CSS property make it look beautiful

can you confirm what browser (and what version) you are using @danwos; I don't see this for either firefox (mac arm64 128.0.3) or chrome (mac arm64 127.0.6533.89), and you definitely need border-collapse to make the inner borders show:

image

@chrisjsewell
Copy link
Member Author

But it should be in all cases "useblocks" :)

fixed

@chrisjsewell
Copy link
Member Author

chrisjsewell commented Aug 6, 2024

I don't see this for either firefox (mac arm64 128.0.3) or chrome (mac arm64 127.0.6533.89)

Ok @danwos, this is where it gets weird....

  • when I view the page on my MacBook monitor, it all looks fine (for Firefox/Chrome)
  • BUT, when I look at the page on my external monitor, I see the same as you!

So perhaps its something to do with the screen resolution and the width of the lines 😅🤷 (my MacBook monitor has a lot better resolution)


edit: indeed when I change all the border thicknesses from 1px to 2px, you can now see them again

image

@chrisjsewell
Copy link
Member Author

It looks like the upper border is missing on need objects:
Deactivating this CSS property make it look beautiful

Ok this should be fixed now; by removing the table row border. As mentioned above, your fix of removing the border-collapse I do not believe is a solution, because it means you cannot add "internal" borders.

I agree it would be nice to have rounded edges, but will look at that probably in a later PR

@danwos
Copy link
Member

danwos commented Aug 12, 2024

Thanks THanks for the fixes.

I detected another small border-issue:
image

Source: https://sphinx-needs--1184.org.readthedocs.build/en/1184/tutorial.html#T_CAR

The bottom left border of the sidebar is missing.
All the other borders and the standard Needs are looking fine.

Copy link
Member

@danwos danwos left a comment

Choose a reason for hiding this comment

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

see last comment

@chrisjsewell
Copy link
Member Author

Ok @danwos 212d955 should fix it (and add a border-radius)

I have checked the documentation for all the themes and looks to be working for all (alabaster, sphinx_rtd_theme, furo, sphinx_immaterial, pydata_sphinx_theme)

@chrisjsewell chrisjsewell merged commit 2045121 into master Aug 14, 2024
21 checks passed
@chrisjsewell chrisjsewell deleted the new-doc-theming branch August 14, 2024 13:07
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