Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Restructured docs site layout#232

Merged
validbeck merged 41 commits intomainvalidmind/documentation:mainfrom
beck/sc-4799/restructuring-of-docs-site-layoutvalidmind/documentation:beck/sc-4799/restructuring-of-docs-site-layoutCopy head branch name to clipboard
Jul 3, 2024
Merged

Restructured docs site layout#232
validbeck merged 41 commits intomainvalidmind/documentation:mainfrom
beck/sc-4799/restructuring-of-docs-site-layoutvalidmind/documentation:beck/sc-4799/restructuring-of-docs-site-layoutCopy head branch name to clipboard

Conversation

@validbeck
Copy link
Collaborator

@validbeck validbeck commented Jul 2, 2024

Internal Notes for Reviewers

For sc-4799, I rehauled the files & file structure of the documentation repo. See the updated README for more details:

Screenshot 2024-07-02 at 10 03 19 AM

Style guide

As this was starting to get unwieldy, I split this into two pages:

style-guide_new
  • I also added two net-new sections under Conventions:
Titles Filenames
style-guide_titles style-guide_filenames

File renaming

As per the new convention above, I renamed some files (now that they are easier to find/group with sub-directories!)

Old New
/guide/quickstart-try-developer-framework-with-jupyterhub.qmd /get-started/developer/try-with-jupyterhub.qmd
/guide/quickstart-try-developer-framework-with-colab.qmd /get-started/developer/try-with-colab.qmd
/guide/quickstart-try-developer-framework-in-your-own-developer-environment.qmd /get-started/developer/try-in-your-own-environment.qmd
/guide/quickstart-explore-sample-model-documentation.qmd /get-started/platform/explore-sample-model-documentation.qmd
/guide/quickstart-register-your-first-model.qmd /get-started/platform/register-your-first-model.qmd
/guide/quickstart-generate-documentation-for-your-model.qmd /get-started/platform/generate-documentation-for-your-model.qmd

Assets

Any assets WITHOUT descriptive names (like images and videos in releases) also got renamed, and I combed the files to make sure the embedding for the asset still works as expected.

Conceptual overviews

These technically don't follow the naming convention you specified @nrichers, but I figured they were close enough that it wasn't a big deal so I did not rename them:

  • /about/overview-model-risk-management.qmd
  • /about/overview-model-documentation.qmd

Placeholder files

Screenshot 2024-07-02 at 10 28 37 AM

As frontend, developer-framework, and our WordPress website need to be updated after this PR is pushed to prod, I did some searches for external documentation links (frontend, developer-framework, & the one WordPress page with docs links) and created this Notion tracker as well as several placeholder files to re-direct people in the interim.

  • These files are marked as search: false so that only the right version of the articles will come up:

  • /guide/samples-jupyter-notebooks.qmd

  • /guide/get-started-developer-framework.qmd

  • /guide/register-models-in-model-inventory.qmd

  • /guide/join-community.qmd

  • /guide/working-with-model-documentation.qmd

  • /guide/testing-overview.qmd

  • /guide/get-started.qmd

  • /guide/swap-documentation-templates.qmd

  • /guide/collaborate-on-documentation-projects.qmd

  • /guide/supported-models.qmd

Special attention links

HTML links

I made sure to comb through any .html links manually to make sure they linked to the right file

Training modules

Training modules got several thorough stress-tests for links and assets to make sure they still went to the right place or displayed correctly

Other edits

Duplicate column margin numbers

For column margins that had multiple links for one number, I modified the code so that duplicate numbers no longer display:

margins-new_code

Old New
margins_old margins-new

Simplified relative links

Links were getting unwieldy, as more things got moved into sub-directories. Where possible, instead of the ../../../ etc, I simply began with the root folder.

  • This enables our single-sourcing (Quarto includes) to be referenced from anywhere in the site as well, instead of relying on relative structure.
  • This has the added benefit of displaying exactly where the file lives, and what topic/category it's under:
Old New
../../register-models-in-inventory.qmd /guide/model-inventory/register-models-in-inventory.qmd

site-unused & wip

  • Any unused .qmds or assets I sorted into site-unused
  • Files that looked like they were in-progress or were skeletons for future articles I put in wip

Other files

get-started-sandbox.qmd

I know this was technically replaced by training-overview.qmd, but I believe we also gave this link out to a customer so I merely marked it as search: false.

restapi.qmd

I left this untouched as I'm not sure what it's for. @nrichers Any context here?

@validbeck validbeck added the internal Not to be externalized in the release notes label Jul 2, 2024
@validbeck validbeck self-assigned this Jul 2, 2024
@validbeck validbeck requested a review from nrichers July 2, 2024 17:49
README.md Show resolved Hide resolved
Copy link
Collaborator

@nrichers nrichers left a comment

Choose a reason for hiding this comment

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

Epic PR, @validbeck! 🚀🚀🚀 LGTM, as in "looks GREAT to me"!

Some general comments that should be addressed before you merge:

  • site/assets and site/images seem to fulfil similar purposes but the naming of the latter is more restrictive. I'm inclined to suggest we get rid of ONE of these, but my preference would actually be to keep site/assets, as we might have other assets in the future that might need maintaining centrally (e.g. video how-to snippets, or the ValidMind schema docs that are currently just shoehorned into a QMD file, never to be maintained again).
  • Related, we should delete site/assets/bootstrap as those files were for the old HTML home page and should no longer be referenced from anywhere.
  • For consistency with our naming convention, should site/guide be renamed to site/guides? I realize we don't quite follow this convention for /site/developer, either, but there is a good reason for that — a rename of the dev framework is around the corner.

restapi.qmd

Looking at what's left in the root of site/guides, I noticed we this restapi.qmd file as well. I think this file can be deleted safely, likely an early fever dream back from when I was creating our initial docs site. There's no REST API today, the only thing that would qualify is the backend API which we don't externalize.

get-started-sandbox.qmd

site/guide/get-started-sandbox.qmd should be deleted and any links to it should point to site/training/training-overview.qmd instead. We did give a link to a prospective customer at some point, but they have since received the current link with the training modules. If anything, we don't want them going to the old link, as it's no longer current.

Links were getting unwieldy, as more things got moved into sub-directories. Where possible, instead of the ../../../ etc, I simply began with the root folder.

This is a very helpful convention and might belong into our style guide, if it's not there already?

I did some searches for external documentation links ... and created this Notion tracker

Looks like we need to add our organization-level readme to that list as it currently contains some broken links.

The source lives in https://github.com/validmind/.github/blob/main/profile/README.md — I'll add you to the repo.

The rest looks great! I'm genuinely impressed by how quickly you were able to make these file changes.

site/guide/guides.qmd Show resolved Hide resolved
site/guide/guides.qmd Show resolved Hide resolved
@validbeck
Copy link
Collaborator Author

@nrichers

site/assets and site/images seem to fulfil similar purposes but the naming of the latter is more restrictive.

Yes, those were probably built by Ecem as they were there when I got here. I think I don't see what you see, because what I see is:

  • site/assets/
  • site/assets/images

I think we're OK like this, especially if in the future we want to add a sub-directory like site/assets/videos etc.

I think this file can be deleted safely, likely an early fever dream back from when I was creating our initial docs site. There's no REST API today, the only thing that would qualify is the backend API which we don't externalize.

I put this into site-unused/qmd in that case. :)

This is a very helpful convention and might belong into our style guide, if it's not there already?

Great point, I considered it but I wasn't quite sure if that fit. I put it in the README, however:

Screenshot 2024-07-03 at 9 15 27 AM

Looks like we need to add our organization-level readme to that list as it currently contains some broken links.

🫡 Done! (I will also remove the closed beta update when I get to editing that file...)

@validbeck validbeck merged commit c62310c into main Jul 3, 2024
@validbeck validbeck deleted the beck/sc-4799/restructuring-of-docs-site-layout branch July 3, 2024 16:17
validbeck added a commit that referenced this pull request Jul 3, 2024
validbeck added a commit that referenced this pull request Jul 4, 2024
* Added Generate with AI (BETA) to Work with content blocks

* Pulled in latest from main (PR##232)

* Hid the Generate with AI content when rendered in HTML

* Rendered site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Not to be externalized in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.