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

[WIP] docs: Disable Go reformatting #961

Closed
wants to merge 3 commits into from
Closed

Conversation

abhinav
Copy link
Collaborator

@abhinav abhinav commented Oct 11, 2022

Disable reformatting of Go code by mdox because it produces wildly
inconsistent output.

Depends on #958


This PR temporarily pins to my fork of mdox to include bwplotka/mdox#98,
and updates markdownfmt to include Kunde21/markdownfmt#38.

These two combined add the ability for us to opt out of mdox
reformatting all Go code blocks inside Markdown files.

@abhinav abhinav force-pushed the abg/tutorial-nogofmt branch from 930051c to 5aa4553 Compare October 11, 2022 20:14
Base automatically changed from abg/tutorial to master October 12, 2022 02:21
This temporarily pins to my fork of mdox
to include bwplotka/mdox#98.

Separately, this upgrades markdownfmt to pick up
Kunde21/markdownfmt#38.

These two combined add the ability for us to opt out of mdox
reformatting all Go code blocks inside Markdown files.

The .gitignore change is added because this version of mdox uses a local
sqlite cache for speed.
Disable reformatting of Go code by mdox because it produces wildly
inconsistent output.
@abhinav abhinav force-pushed the abg/tutorial-nogofmt branch from 5aa4553 to 35eb038 Compare October 13, 2022 16:35
@codecov
Copy link

codecov bot commented Oct 13, 2022

Codecov Report

Merging #961 (35eb038) into master (bd8f961) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #961   +/-   ##
=======================================
  Coverage   98.62%   98.62%           
=======================================
  Files          38       38           
  Lines        1529     1529           
=======================================
  Hits         1508     1508           
  Misses         15       15           
  Partials        6        6           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@abhinav
Copy link
Collaborator Author

abhinav commented Dec 12, 2022

Closing in favor of #1000

@abhinav abhinav closed this Dec 12, 2022
sywhang pushed a commit that referenced this pull request Dec 12, 2022
(This is a new version of #961. I can't push to the original branch
anymore.)

---

Upgrade to latest markdownfmt
which does not reformat Go source code blocks by default.

With this change, formatting of code blocks in Fx docs will be
consistent
instead of some being gofmt-ed to use tabs,
and others using 2 spaces (per our 'region' script).

This is a landable version of #961 without any temporary version pins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants