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

Remove code-blocks #98

Merged
merged 11 commits into from
May 20, 2022
Merged

Remove code-blocks #98

merged 11 commits into from
May 20, 2022

Conversation

MongoCaleb
Copy link
Collaborator

replace code-blocks with snippets (incl. codeblock and Codeblock, too)

"utf8"
);
expect(fileContents).toStrictEqual(`.. code-block:: javascript
expect(fileContents).toStrictEqual(`.. snippet:: javascript
Copy link
Collaborator

Choose a reason for hiding this comment

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

In this case it still needs to be code-block for rST's sake

@@ -83,7 +83,7 @@ export const formatInRst = async (
? rstLanguageMap.get(document.extension)
: "text";

const rstHeader = ".. code-block::";
const rstHeader = ".. snippet::";
Copy link
Contributor

@mongodben mongodben May 20, 2022

Choose a reason for hiding this comment

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

please revert this. not valid RST

"utf8"
);
expect(rstFileContents).toStrictEqual(`.. code-block:: javascript
expect(rstFileContents).toStrictEqual(`.. snippet:: javascript
Copy link
Contributor

@mongodben mongodben May 20, 2022

Choose a reason for hiding this comment

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

"utf8"
);
expect(fileContents).toStrictEqual(`.. code-block:: javascript
expect(fileContents).toStrictEqual(`.. snippet:: javascript
Copy link
Contributor

Choose a reason for hiding this comment

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

revert pls

),
"utf8"
);
expect(fileContentsSync).toStrictEqual(
`.. code-block:: swift
`.. snippet:: swift
Copy link
Contributor

Choose a reason for hiding this comment

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

revert pls

),
"utf8"
);
// TODO: Expect this not to emphasize lines, since the :emphasize: tag was
// completely in the other state
/*
expect(fileContentsLocal).toStrictEqual(
`.. code-block:: swift
`.. snippet:: swift
Copy link
Contributor

Choose a reason for hiding this comment

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

revert pls

@MongoCaleb MongoCaleb requested a review from cbush May 20, 2022 20:01
@MongoCaleb MongoCaleb merged commit 0116a75 into mongodb-university:main May 20, 2022
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