-
Notifications
You must be signed in to change notification settings - Fork 394
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
start: cleanup nav #3941
start: cleanup nav #3941
Conversation
in prep for #3678
95f790d
to
d20cae5
Compare
{ | ||
"label": "Data and Model Access", | ||
"slug": "access" | ||
}, | ||
{ | ||
"label": "Data Pipelines", | ||
"slug": "pipelines" | ||
}, | ||
"data-and-model-access", | ||
"data-pipelines", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Significantly simplifies this section of sidebar.json.
- Updates 2 URL paths so they match page titles (good for SEO, best practice).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing source
from things might break the "Edit on GitHub" links unless we update the sidebar logic to better accept them. Might not, but we need to make sure to check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm thanks for letting me know @rogermparent. I did not know that (probably something we can improve on in the engine...) I'll reinstate the source
s for now ⏳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless we update the sidebar logic to better accept them
iterative/gatsby-theme-iterative#77
Might not, but we need to make sure to check
P.s. I did check and the button links were broken indeed (in the review app).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be the case for some of them, but the result of the logic on some nested items, for example docs/start
, render the link as https://github.com/iterative/dvc.org/blob/main/content/docs/start.md
where the file is actually at https://github.com/iterative/dvc.org/blob/main/content/docs/start/index.md
. We can likely just make a change that assumes source-less files are at index.md
and that'd be all we need to support 90+% of source-less cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I already rolled this back for now. Feel free to take it to iterative/gatsby-theme-iterative#77 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I checked on the rolled-back version of the preview app.
Yes, we do need to define the source for items with index.md
.
### Experiments Trail | ||
### Experimentation | ||
|
||
- [**Experiments**](/doc/start/experiments) enable exploration, iteration, and | ||
comparison across many ML experiments. Track your experiments with automatic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we call this trail something else? Maybe "Machine Learning Experimentation" ?
"^/doc/start/data-versioning$ /doc/start/data-and-model-versioning", | ||
"^/doc/start/data-access$ /doc/start/data-and-model-access", | ||
"^/doc/start/data-and-model-versioning(/.*)?$ /doc/start/data-management$1 302", | ||
"^/doc/start/data-and-model-access(/.*)?$ /doc/start/data-management/access$1 302", | ||
"^/doc/start/data-pipelines(/.*)?$ /doc/start/data-management/pipelines$1 302", | ||
"^/doc/start/metrics-parameters-plots(/.*)?$ /doc/start/data-management/metrics-parameters-plots$1 302", | ||
"^/doc/start/sharing-data-and-model-files$ /doc/start/data-and-model-versioning#storing-and-sharing 302", | ||
"^/doc/start/data-versioning$ /doc/start/data-management", | ||
"^/doc/start/data-and-model-versioning(/.*)?$ /doc/start/data-management 302", | ||
"^/doc/start/sharing-data-and-model-files$ /doc/start/data-management#storing-and-sharing 302", | ||
"^/doc/start/data-access$ /doc/start/data-management/data-and-model-access", | ||
"^/doc/start/data-and-model-access(/.*)?$ /doc/start/data-management/data-and-model-access 302", | ||
"^/doc/start/data-pipelines(/.*)?$ /doc/start/data-management/data-pipelines 302", | ||
"^/doc/start/metrics-parameters-plots(/.*)?$ /doc/start/data-management/metrics-parameters-plots 302", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated and simplified redirects as well (using final locations for previous 301 ones, plus fortunately many were 302s so we can change those any time).
Link Check ReportThere were no links to check! |
Also, I made a separate PR to update all the links to keep this PR lean. PTAL: #3942 |
Preview link https://dvc-org-start-cleanup-d780abpa.herokuapp.com/doc (not working here for some reason) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not mix many things at once (e.g. data pipelines - we actually go with Pipeline now, right?)
do we need to remove a few index files here?
Something with Heroku's SSL certs proabbly. You can chose to "visit this unsafe site": |
Sorry @shcheklein, not sure what you mean. This is a nav cleanup with 2 URL changes. Should I make a PR for each one?
In the User Guide yes, but in Get Started the title is already Data Pipelines, this PR just fixed the URL so it reflects that title. We can change it, but that would be a separate change IMO. Let's discuss including that in #3943 ? |
Or I can return the file to Lmk please! |
@jorgeorpinel okay, I see I got confused since it also cleanups a lot of stuff along the way ... if this doesn't break any then LGTM ;) |
* start: cleanup nav in prep for #3678 * start: update links from all docs on top of #3941 * start: md ref links (index) * start: make data versioning page * start: write new intro DM page and move the rest to the new DV page (old DM content) per #3955 (comment)
* start: cleanup nav in prep for #3678 * start: update links from all docs on top of #3941 * start: md ref links (index) * start: make data versioning page * start: write new intro DM page and move the rest to the new DV page (old DM content) per #3955 (comment) * start: update links from DM index to new DV page
In preparation for #3943