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

Switch to new "bit explanation" format #334

Merged
merged 10 commits into from
Oct 8, 2023
Merged

Conversation

ISSOtm
Copy link
Member

@ISSOtm ISSOtm commented Jul 22, 2021

Fixes #318, #293

TODO:

  • Center text in fields, for better readability (e.g. CGB palette in the OAM table)

@ISSOtm
Copy link
Member Author

ISSOtm commented Aug 16, 2023

Feedback on the design would be welcome! NR10, LCDC, OAM and BG attributes, palettes (both regs and CRAM), STAT.

There is also the second table in the tile data chapter, but it's a different, unique design.

@ISSOtm
Copy link
Member Author

ISSOtm commented Sep 28, 2023

I'm not going to go over the MMM01 page, because it's too daunting even for me.

@ISSOtm ISSOtm marked this pull request as ready for review September 28, 2023 19:20
@ISSOtm
Copy link
Member Author

ISSOtm commented Sep 28, 2023

I've converted almost everything: 3 SGB pages are remaining, and the MMM01 page. Plus anything I've missed, but honestly converting these is getting too tedious even for my tastes, and I'd rather get all of the existing conversions merged instead of making this PR linger in limbo any longer.

@ISSOtm
Copy link
Member Author

ISSOtm commented Sep 28, 2023

Note: a render is still available at https://eldred.fr/pandocs. Please refer to the PR contents for a list of modified tables.

ISSOtm and others added 7 commits September 29, 2023 00:00
Recovered from a very old stash, hopefully I "rebased" correctly.
Since this is changing the structure of the bit explanations,
some modifications to the content have been made as well.
This guarantees good X overflow behaviour. Nice!
@ISSOtm ISSOtm changed the title [WIP] Switch to new "bit explanation" format Switch to new "bit explanation" format Sep 28, 2023
@@ -130,6 +130,51 @@ Note that the angle brackets [are only required if there are spaces in the URL](

In effect, this means that linking to a section is as simple as copy-pasting its name in the URL field, prepending a `#`, and wrapping everything in `<>` if the name contains a space.

### Bit breakdown tables
Copy link
Member

Choose a reason for hiding this comment

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

Are we sure this goes in DEPLOY.md and not CONTRIBUTING?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, but all of the custom syntax is documented here: better keep it all together now, and move it in a separate PR?

Copy link
Member

Choose a reason for hiding this comment

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

Agree!

@@ -35,24 +40,75 @@ impl Preprocessor for Pandocs {
}

fn run(&self, _: &PreprocessorContext, mut book: Book) -> Result<Book, Error> {
Copy link
Member

Choose a reason for hiding this comment

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

Could we add some comments/documentation on what these new parts/functions of the preprocessor are doing?

@@ -35,24 +40,75 @@ impl Preprocessor for Pandocs {
}

fn run(&self, _: &PreprocessorContext, mut book: Book) -> Result<Book, Error> {
Copy link
Member

Choose a reason for hiding this comment

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

Also, shouldn't we add some simple unit testing to this logic?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure what you'd want to unit-test here, and not super hot on trying to build a mdBook book from scratch for testing purposes—to what extent is that stable? I'd like to avoid churn there.

increasing: bool,
}

impl<'input> BitDescrAttrs<'input> {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be tested as well?

@avivace avivace merged commit a3f9c08 into gbdev:master Oct 8, 2023
2 checks passed
@ISSOtm
Copy link
Member Author

ISSOtm commented Oct 8, 2023

Honestly, thank you.

ISSOtm added a commit to ISSOtm/pandocs that referenced this pull request Oct 23, 2023
ISSOtm added a commit to ISSOtm/pandocs that referenced this pull request Oct 23, 2023
ISSOtm added a commit to ISSOtm/pandocs that referenced this pull request Oct 23, 2023
avivace pushed a commit that referenced this pull request Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consistency - style Content format, text style, consistency in presenting the informations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Styling for "bit explanation" tables/diagrams
2 participants