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

[docs] fix: broken links #764

Merged
merged 3 commits into from
Apr 14, 2022
Merged

[docs] fix: broken links #764

merged 3 commits into from
Apr 14, 2022

Conversation

Wayonb
Copy link
Contributor

@Wayonb Wayonb commented Mar 25, 2022

With the move to monorepo, there are a lot of broken GitHub repo links which are invalid.

There is no more catbuffer generators project since this is now part of each sdk. Open issue #763 to keep track of this.

Moved the make alldocs and linkcheck to the build script

With the move to monorepo, there are a lot of broken GitHub repo links which are invalid.
@netlify
Copy link

netlify bot commented Mar 25, 2022

Deploy Preview for nemtech ready!

Name Link
🔨 Latest commit e13e7e7
🔍 Latest deploy log https://app.netlify.com/sites/nemtech/deploys/6255c3f5ad3c4c0008bf205e
😎 Deploy Preview https://deploy-preview-764--nemtech.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Wayonb
Copy link
Contributor Author

Wayonb commented Mar 25, 2022

Hey @fboucquez, I also update the broken links for the symbol-bootstrap. Can you take a look?
For future updates to the symbol-bootstrap docs like file rename or move, can you also update the links here?
Thanks.

Copy link
Collaborator

@segfaultxavi segfaultxavi left a comment

Choose a reason for hiding this comment

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

This is a massive commit and I haven't read it thoroughly, I hope links are indeed fixed correctly :)

My only comment is that the autogenerated html tables maybe could go in a separate commit, to reduce the bulk of the commit. You know these tables are generated by the project https://github.com/symbol/catapult-docs-cli and not by hand, right?
You better update that project too... :D

@Wayonb
Copy link
Contributor Author

Wayonb commented Mar 28, 2022

My only comment is that the autogenerated html tables maybe could go in a separate commit, to reduce the bulk of the commit. You know these tables are generated by the project https://github.com/symbol/catapult-docs-cli and not by hand, right? You better update that project too... :D

Thanks Xavi. It make sense but no didnt know how these html files were created. The update was mainly search and replace. :)
Is there build documentation for the docs site?
I will take a look at the catapult-docs-cli repo.

@@ -230,7 +230,7 @@ Just like in the harvesting case, this creates the required :ref:`votingkeylinkt
symbol-bootstrap updateVotingKeys
Copy link
Contributor

Choose a reason for hiding this comment

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

Should a guide to rewnew certificates with bootstrap be added? Probably in a new PR.

https://github.com/fboucquez/symbol-bootstrap/blob/dev/docs/renewCertificates.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, renew certificates is a new PR. Can you write one?

@@ -270,7 +268,7 @@ You need to own the domain ``awesomenode.mycompany.net`` and it needs to resolve
Next steps
**********

- Read the `complete list <https://github.com/symbol/symbol-bootstrap/blob/main/README.md#user-content-commands>`_ of ``symbol-bootstrap`` commands.
- Read the `complete list <https://github.com/fboucquez/symbol-bootstrap/blob/main/README.md>`_ of ``symbol-bootstrap`` commands.
Copy link
Contributor

Choose a reason for hiding this comment

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

@segfaultxavi
Copy link
Collaborator

Thanks Xavi. It make sense but no didnt know how these html files were created. The update was mainly search and replace. :) Is there build documentation for the docs site? I will take a look at the catapult-docs-cli repo.

https://docs.symbol.dev/handbook/doc-common-tasks.html#update-the-serialization-tables

The README is outdated now that the directory structure has changed, and the default paths for the catapult-docs-cli command probably won't work, but you can still supply all of them through parameters. Everything is well commented because I am such a nice guy.

@fboucquez
Copy link
Contributor

I think the links look good. Just 2 comments. I'll advice when files are moved around in bootstrap.

Hey @fboucquez, I also update the broken links for the symbol-bootstrap. Can you take a look? For future updates to the symbol-bootstrap docs like file rename or move, can you also update the links here? Thanks.

@Wayonb
Copy link
Contributor Author

Wayonb commented Apr 12, 2022

@segfaultxavi I looked at the catapult-docs-cli repo. I fixed the issue when comment is missing. I can push cli first if you want. It will have other changes which I am not sure is correct....yet :)
Using the cli tool will not reduced the number of files.

Address feedback.
Disable link check for GitHub since they are now returning 403.
source/conf.py Outdated
@@ -355,6 +355,9 @@ def setup(app):
r'https://arxiv.org/.*', # Sometimes returns 403 on Travis (rate limit?)
r'https://www.researchgate.net/.*', # Started returning 403 on Travis
r'https://symbolblog.com/.*', # Returning 403
r'https://docs.github.com/.*', # GitHub is now returning 403
r'https://help.github.com/.*', # GitHub is now returning 403
r'https://github.com/fboucquez/symbol-bootstrap#command-topics', # Returning Anchor 'command-topics' not found
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd really prefer that we do not overpopulate this list... this is weakening the link check :/
I think the right anchor in this case is:
https://github.com/fboucquez/symbol-bootstrap#user-content-command-topics

Also, all these 403 might be related to throttling? The link checker has a mechanism to avoid making too many consecutive requests to the same server, but maybe changing the CI has altered that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Xavi, I think I found the issue with 403 error. If I add with user_agent it seems to fix the problem

sphinx-doc/sphinx#7369 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The updated link for bootstrap also fix the issue

Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome!

Add ``user_agent`` which seems to fix 403 errors.
Copy link
Collaborator

@segfaultxavi segfaultxavi left a comment

Choose a reason for hiding this comment

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

Accepting, but don't forget to update the cli or it will overwrite all these changes some day!

@Wayonb Wayonb merged commit 4bb188f into main Apr 14, 2022
@Wayonb Wayonb deleted the fix_broken_links branch April 14, 2022 02:40
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.

3 participants