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

Various documentation fixes #2699

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Various documentation fixes #2699

merged 5 commits into from
Nov 3, 2023

Conversation

illarionov
Copy link
Contributor

This PR fixes some broken links on https://square.github.io/wire/ and also has a minor formatting improvements.

Some of the visible changes:

Shorten line length to remove the horizontal scrollbar
Fixes mkdocs warning `Doc file 'index.md' contains an unrecognized relative link 'wire_compiler', it was left as is.`
Added md_in_html extension to render markdown links inside raw HTML `<details>` blocks.
Changed links to absolute to make them work on https://square.github.io/wire/
Added `not_in_nav` parameter with a list of auto-generated and other docs not explicitly listed in the navigation block to reduce the number of warnings from mkdocs.
Copy link
Member

@oldergod oldergod left a comment

Choose a reason for hiding this comment

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

Thank you!

If not done already, could you please sign our CLA so that I can merge it?

Comment on lines -28 to -31
# sed -i 's/docs\/wire_compiler.md/wire_compiler/' README.md
# sed -i 's/docs\/wire_compiler.md/wire_compiler.md/' README.md
# OSX
sed -i "" 's/docs\/wire_compiler.md/wire_compiler/' README.md
sed -i "" 's/docs\/wire_grpc.md/wire_grpc/' README.md
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why these need a change. What is broken with them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It works now, but mkdocs emits a warning:

Doc file 'index.md' contains an unrecognized relative link 'wire_compiler', it was left as is.

Because it expects all internal links to be links to existing files.
This change is only to fix this warning.

@illarionov
Copy link
Contributor Author

Thank you!

If not done already, could you please sign our CLA so that I can merge it?

Done

@oldergod oldergod merged commit cc0f603 into square:master Nov 3, 2023
7 checks passed
@oldergod
Copy link
Member

oldergod commented Nov 3, 2023

Thank you!

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.

2 participants