question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Standardise documentation links to ensure they work across local and production environments

See original GitHub issue

Change Type

[ ] Addition [ ] Correction [ ] Deprecation [x] Cleanup (formatting, typos, etc.)

Area

[x] Installation instructions [x] Configuration parameters [x] Functionality/features [x] REST API [x] Administration/development [x] Other

Proposed Changes

tl;dr Change all links to follow the [Document title](../category/name.md#ref) format for ease of development

I’ve noticed a couple of broken links in the production version of the Netbox documentation that work fine locally.

The links in question use the /category/blah style of URL which works fine locally but doesn’t work in production as this type of link translates into netbox.readthedocs.io/category/blah which invalid because the documentation lives under netbox.readthedocs.io/en/stable/category.blah

Similarly, most every working link is formatted as ../../category/blah which works fine locally and in production but has no correlation to the folder structure on disc, adding a bit of overhead when juggling between the disk layout and the deploy layout

I notice that mkdocs will transform a filesystem link (ie ../configuration/index.md#blah) into a proper URL (ie ../../configuration/) and seems like the best of both worlds. You only have to think about the folder structure on disc and it has the added benefit of being a valid link locally so you can traverse through the documentation while using markdown preview built into text editors or a dedicated markdown previewer such as MacDown

I’ve gone through the documentation locally and made these changes but as this would be my first pull request on behalf of my employer (Daimler / Mercedes-Benz Trucks), I’ve still yet to gain access to our Github org which is a blocker for my contributing a PR. For now, I’ll just post a proposal anyway to see if it’s accepted 🙂

Marcus Crane, marcus.crane@daimler.com, Mercedes-Benz New Zealand Ltd on behalf of Daimler Truck AG on behalf of Daimler TSS (Imprint)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DanShepscommented, Mar 15, 2021

Sorry, you can go ahead and submit the PR.

0reactions
marcus-cranecommented, Mar 14, 2021

Hi there,

I just wanted to know if this was still under review?

The links mentioned are still broken in your production documentation but if there’s no interest, I’m happy to close this issue.

I’ve had a branch with the changes sitting on my hard drive since December so I’m happy to own this issue but I can’t submit a PR until this issue is reviewed as was requested in the Netbox contributor guidelines

Kind Regards 😊

Marcus Crane, marcus.crane@daimler.com, Mercedes-Benz New Zealand Ltd on behalf of Daimler Truck AG on behalf of Daimler TSS (Imprint)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting On the Same (Web) Page By Standardizing ... - DDEV
In this post, we look at why and how you would standardize local development environments across a team to improve knowledge sharing and ......
Read more >
Standardizing Processes: How to Create a Documentation ...
Whatever you do, just make sure that when your employees need to standardize processes, your documentation style guide will be easy to find...
Read more >
Process Standardization: A Complete Guide To Unifying Your ...
Here is everything you need to carry out process standardization in your company so that employees and staff work better towards your goal....
Read more >
Organising your data | Research Data Management
To ensure that you understand your own data and that others may find, use and properly cite your data, it helps to add...
Read more >
Standardization - Definition, Goal and Example, Effects
Standardization is the process of creating standards to guide the creation of a good or service based on the consensus of all the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found