Skip to content

Conversation

@FireIsGood
Copy link
Contributor

@FireIsGood FireIsGood commented May 22, 2024

Fixes #526

Adds prettier and formats everything applicable. There are also some assorted format fixes manually added as part of checking every single page.

Every post has been manually looked through for errors and corrected.

Before

One of many, many examples:

command | description
:-| :-
`curl -I https://cheatsheets.zip` | `curl` sends a request
`curl -v -I https://cheatsheets.zip` | `curl` request with details
`curl -X GET https://cheatsheets.zip` | use explicit http method for `curl`
`curl --noproxy 127.0.0.1 http://www.stackoverflow.com` | `curl` without http proxy
`curl --connect-timeout 10 -I -k https://cheatsheets.zip` | `curl` has no timeout by default
`curl --verbose --header "Host: www.mytest.com:8182" cheatsheets.zip` | `curl` get extra header
`curl -k -v https://www.google.com` | `curl` get response with headers
<!--rehype:class=auto-wrap-->

After

After formatting

| command                                                               | description                         |
| :-------------------------------------------------------------------- | :---------------------------------- |
| `curl -I https://cheatsheets.zip`                                     | `curl` sends a request              |
| `curl -v -I https://cheatsheets.zip`                                  | `curl` request with details         |
| `curl -X GET https://cheatsheets.zip`                                 | use explicit http method for `curl` |
| `curl --noproxy 127.0.0.1 http://www.stackoverflow.com`               | `curl` without http proxy           |
| `curl --connect-timeout 10 -I -k https://cheatsheets.zip`             | `curl` has no timeout by default    |
| `curl --verbose --header "Host: www.mytest.com:8182" cheatsheets.zip` | `curl` get extra header             |
| `curl -k -v https://www.google.com`                                   | `curl` get response with headers    |

(I had to manually fix a lot of tables)

Some files like minimized CSS and the fuze.js file have been ignored.

FireIsGood added 30 commits May 16, 2024 01:58
They were not mentioned anywhere else else in the code after doing a
quick grep. The format was going to bug out the Prettier formatting, so
I have made the decision to remove them instead of adding an ignore on
files that are not beign used.
Replaces quotations and does basic indentation that is trivial. This is
separate as the other will make more changes for files that are actual
code.
Formats all the general js files. Separate in case these should be
treated differently for any reason. This commit includes all javascript
and HTML files.
Lints the README. Separate commit as it does a lot of reflowing.
Lints CSS files from this repo. This does NOT affect minimized css via
the ignore file.
Fixed a bunch of style related fixes and formatting errors due caused by
incorrect code block languages
Fixed all the strange inline code endings
Added some space between lists and their modifiers
Styles at the bottom removed
Added space before the modifiers
Fixes some modifier spacing
Fixes the modifier spacing
fixed bitwise OR operators for the tables
Fixed the blank spaces as well as broken dropdowns
Fixed bitwise opreators and modifier spacing
Fixes the spacing and tabel formatting
Fixed a single letter of capitalization
Fixed modifier spacing and comment image
Fix modifier spacing and a little capitalization
Fix the basics of the Django page. This needs a full rewrite in the
future, however this fixes some of the most glaring issues.
Fixed modifier spacing
Added ignores to some code blocks and fixed up the table code block
formatting
Fixes table alignment and shows table headers for tables at the top of
thier card
Fixes table alighment and other formatting things. Table align right may
be a bad user experience
This is included as it is part of the format but also would have caused
merge conflicts if it was in a separate commit.
Added code wrappers to all selectors for consistency
Removes the larger text size, as that makes the page significantly less
readable due to line height.
FireIsGood added 27 commits May 22, 2024 01:25
Fixed the modifier spacing (wow)
Fixed the modifier spacing
Fixed a small capitalization and the class modifier things
Fixes the bullets and modifier spacing
Changes the only section to be two columns
Fixed the tables
Fixes the layout of the boxes to fit a little better
Fixes formatting, aligns tables, and adds some more highlighitng to go
in with the current yellow highlights
Fixed the modifier spacing
Fixed the table issue as well
Fixes the classic code block with | symbol issue
Changes it to be 2 columns
Fixed the table with pipe issue again
Adds some row span to make it more compact and fixes a small spelling
error
fixes a small spelling error
Changes format to 2 columns
Fixed modifier spacing (wow again)
Fixed minor spelling error
Fixed some broken formatting and misused header levels
Changed to be 2 columns
Fixes the tables
Fixed the Mac icons
Fixed the table having a random space
Added some ignores
Every other file's format which was automatically converted correctly.
Each has been manually checked and they should all be visually the same.
Fixed some random space and misspellings
@Fechin Fechin merged commit ffc6923 into Fechin:main May 23, 2024
@Fechin
Copy link
Owner

Fechin commented May 23, 2024

@FireIsGood, Thank you very much for your extensive and for taking the initiative to add prettier and format our project! It's impressive to see the diligence with which you've manually reviewed each file and fixed errors.

@FireIsGood FireIsGood deleted the prettier branch May 23, 2024 08:20
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.

Add formatter

2 participants