Skip to content

Docs: Document Admin conventions and relocate admin theme guides#19195

Merged
gvkries merged 18 commits into
OrchardCMS:mainfrom
JasonPG2007:docs/admin-conversion-guide
May 5, 2026
Merged

Docs: Document Admin conventions and relocate admin theme guides#19195
gvkries merged 18 commits into
OrchardCMS:mainfrom
JasonPG2007:docs/admin-conversion-guide

Conversation

@JasonPG2007

Copy link
Copy Markdown
Contributor

Close #15299

Description

This PR addresses the request to document the Admin Theme conventions and reorganize the related documentation.

Changes:

  • Created admin-theme.md in reference/themes to document the [Admin] attribute, naming conventions (AdminController), and Razor Pages folder structure.
  • Relocated the create-admin-theme guide from guides/ to reference/themes/.
  • Updated reference/README.md to include links to the new and relocated documentation.

Technical Note:

Verified the logic in AdminZoneFilter.cs and AdminThemeSelector.cs to ensure the documented conventions accurately reflect the underlying implementation.

I've also checked the relative links in the moved files to ensure they work correctly in the new location.

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for submitting your first pull request, awesome! 🚀 If you haven't already, please take a moment to review our contribution guide. This guide provides helpful information to ensure your contribution aligns with our standards. A core team member will review your pull request.

If you like Orchard Core, please star our repo and join our community channels.

@hishamco

Copy link
Copy Markdown
Member

Accept CLA

@JasonPG2007

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

@hishamco hishamco requested a review from MikeAlhayek April 28, 2026 15:40
@JasonPG2007

Copy link
Copy Markdown
Contributor Author

Hi, I see the build failed due to some broken links after relocation. I'm currently away from my computer and will fix them as soon as I get back. Thanks for your patience!

@hishamco

hishamco commented Apr 29, 2026

Copy link
Copy Markdown
Member

You try the docs locally

mkdocs serve -a 127.0.0.1:9999

@JasonPG2007

Copy link
Copy Markdown
Contributor Author

You try the docs locally

mkdocs serve -a 127.0.0.1:9999

Thanks for the suggestion! I will try running mkdocs serve locally to verify the links and fix the remaining warning. I'll update the PR as soon as it's verified.

@JasonPG2007

Copy link
Copy Markdown
Contributor Author

All checks have passed! I've fixed the relative link issues and verified them locally using mkdocs serve. Ready for another review. Thanks!

Comment thread src/docs/reference/modules/Admin/README.md Outdated
Comment thread src/docs/reference/modules/Admin/README.md Outdated
Comment thread src/docs/reference/themes/create-admin-theme/README.md Outdated
Comment thread src/docs/reference/themes/create-admin-theme/README.md Outdated
JasonPG2007 and others added 4 commits April 29, 2026 18:27
Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
@JasonPG2007

Copy link
Copy Markdown
Contributor Author

I've applied the suggestions. Ready for another review. Thanks! @hishamco @MikeAlhayek

Comment thread mkdocs.yml Outdated
- Placements: reference/modules/Placements/README.md
- Themes: reference/modules/Themes/README.md
- Admin Theme Conventions: reference/themes/admin-theme.md
- Creating an Admin Theme: reference/themes/create-admin-theme/README.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you should leave the guide in the Guides section. There we have our step-by-step instructions, while the reference documentation is here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think you should leave the guide in the Guides section. There we have our step-by-step instructions, while the reference documentation is here.

Hi @gvkries, thanks for your feedback!

The reason I moved the folder was to follow the suggestion in issue #15299, which aimed to reorganize theme-related documentation into a new Reference section.

However, I totally agree with your point that step-by-step instructions fit better in the Guides section. Would you prefer if I:

  1. Move the "Creating an Admin Theme" guide back to the Guides section.

  2. Only use the new reference/themes folder to host technical documentation (e.g., explaining IThemeService, AdminController, and the [Admin] attribute) as requested in the issue?

Let me know what you think, and I will update the PR accordingly!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fair point, but I think moving it below Reference -> Modules -> CMS Modules makes it too hard to discover. Maybe we can move everything theme-related into a new category, e.g. Reference -> Themes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair point, but I think moving it below Reference -> Modules -> CMS Modules makes it too hard to discover. Maybe we can move everything theme-related into a new category, e.g. Reference -> Themes.

That makes perfect sense! Creating a dedicated Reference -> Themes category will definitely make theme-related information much easier to find.

I will organize the content as follows:

  1. Move the 'Creating an Admin Theme' guide into Reference/Themes.
  2. Keep the new technical documentation ([Admin] attribute, IThemeService, etc.) in Reference/Themes as well.

I'll update the PR right away. Thank you!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But you have to keep in mind that we also have this Create a theme (for front-end themes) in the "Getting Started" section. Maybe we need a broader approach for the entire theming (not just admin themes). I think it's easier to leave the overall structure as it is for now and add the reference documentation first. We can then restructure everything together in a follow-up PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But you have to keep in mind that we also have this Create a theme (for front-end themes) in the "Getting Started" section. Maybe we need a broader approach for the entire theming (not just admin themes). I think it's easier to leave the overall structure as it is for now and add the reference documentation first. We can then restructure everything together in a follow-up PR.

Hi @gvkries, thank you for the clarification!

That makes a lot of sense. Reorganizing the entire theming structure is indeed a bigger task and it's better to keep it for a separate PR to avoid overcomplicating this one.

I will revert the folder structure and the mkdocs.yml changes. I'll focus solely on adding the new reference documentation for the [Admin] attribute and IThemeService as requested in the issue.

I'll let you know once the PR is updated. Thanks!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But you have to keep in mind that we also have this Create a theme (for front-end themes) in the "Getting Started" section. Maybe we need a broader approach for the entire theming (not just admin themes). I think it's easier to leave the overall structure as it is for now and add the reference documentation first. We can then restructure everything together in a follow-up PR.

Hi @gvkries, I have completed the requested changes:

  • Moved the Creating an Admin Theme guide back to the Guides section.
  • Restored the original structure in mkdocs.yml.
  • Added a new Admin Theme Conventions page in Reference -> Themes covering the [Admin] attribute and IThemeService.
  • Fixed broken documentation links and resolved all build warnings.
  • Updated the branch with the latest changes from main.

The documentation now builds correctly and follows the project's standards. Ready for your review!

@JasonPG2007 JasonPG2007 force-pushed the docs/admin-conversion-guide branch from e408140 to 369a0f3 Compare May 1, 2026 03:06
Comment thread src/docs/reference/themes/admin-theme.md Outdated
Comment thread src/docs/reference/themes/admin-theme.md Outdated
Comment thread src/docs/reference/themes/admin-theme.md Outdated
Comment thread src/docs/reference/themes/admin-theme.md Outdated
JasonPG2007 and others added 3 commits May 1, 2026 13:04
Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
@JasonPG2007

Copy link
Copy Markdown
Contributor Author

I've applied the suggestions. Ready for another review. Thanks! @hishamco

@JasonPG2007

Copy link
Copy Markdown
Contributor Author

Hi @hishamco and @MikeAlhayek, I'm sorry to bother you, but it seems the CI checks are pending approval to run. Whenever you have a moment, could you please trigger them? Thank you for your time!

@hishamco

hishamco commented May 3, 2026

Copy link
Copy Markdown
Member

No need to ping, just ask for a review from the top right menu

@JasonPG2007 JasonPG2007 requested a review from gvkries May 3, 2026 21:10

@gvkries gvkries left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please revert the formatting changes in global.json and mkdocs.yml. That just adds unnecessary noise and our files are formatted with two spaces only.

@JasonPG2007 JasonPG2007 requested a review from gvkries May 4, 2026 22:38
@gvkries gvkries merged commit fb13523 into OrchardCMS:main May 5, 2026
12 checks passed
@gvkries

gvkries commented May 5, 2026

Copy link
Copy Markdown
Member

Thanks @JasonPG2007

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Congratulations on your first PR merge! 🎉 Thank you for your contribution! We're looking forward to welcoming other contributions of yours in the future. @all-contributors please add @JasonPG2007 for code.

If you like Orchard Core, please star our repo and join our community channels.

@allcontributors

Copy link
Copy Markdown
Contributor

@github-actions[bot]

I've put up a pull request to add @JasonPG2007! 🎉

@JasonPG2007

Copy link
Copy Markdown
Contributor Author

Thanks @JasonPG2007

My pleasure!

@JasonPG2007 JasonPG2007 deleted the docs/admin-conversion-guide branch May 5, 2026 11:34
@JasonPG2007 JasonPG2007 restored the docs/admin-conversion-guide branch May 5, 2026 11:34
@JasonPG2007 JasonPG2007 deleted the docs/admin-conversion-guide branch May 6, 2026 02:02
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.

Document the AdminAttribute and the AdminController naming convention

3 participants