-
Notifications
You must be signed in to change notification settings - Fork 133
fix: landing pages syntax highlighting [internal] #1222
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
50857d0
fixed package json
webrdaniel 94947c6
fix: use the default Docusaurus `CodeBlock` for the /api and /sdk pages
barjin aaa1867
chore: reset package-lock.json
barjin c5ebf2f
Merge branch 'master' of github.com:apify/apify-docs into fix/code-bl…
webrdaniel 6185264
Styling of codeblock
webrdaniel e11f54e
Merge branch 'master' of github.com:apify/apify-docs into fix/code-bl…
webrdaniel b03e3bc
css cleaner formatting
webrdaniel 8f4d864
fix selectors
webrdaniel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| // Original: https://github.com/sdras/night-owl-vscode-theme | ||
|
|
||
| export const darkTheme = { | ||
| plain: { | ||
| color: '#d6deeb', | ||
| backgroundColor: '#252832', | ||
| }, | ||
| styles: [ | ||
| { | ||
| types: ['changed'], | ||
| style: { | ||
| color: 'rgb(162, 191, 252)', | ||
| fontStyle: 'italic', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['deleted'], | ||
| style: { | ||
| color: 'rgba(239, 83, 80, 0.56)', | ||
| fontStyle: 'italic', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['inserted', 'attr-name'], | ||
| style: { | ||
| color: 'rgb(173, 219, 103)', | ||
| fontStyle: 'italic', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['comment'], | ||
| style: { | ||
| color: 'rgb(99, 119, 119)', | ||
| fontStyle: 'italic', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['string', 'url'], | ||
| style: { | ||
| color: 'rgb(173, 219, 103)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['variable'], | ||
| style: { | ||
| color: 'rgb(214, 222, 235)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['number'], | ||
| style: { | ||
| color: 'rgb(247, 140, 108)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['builtin', 'char', 'constant', 'function'], | ||
| style: { | ||
| color: 'rgb(130, 170, 255)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['punctuation'], | ||
| style: { | ||
| color: 'rgb(199, 146, 234)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['selector', 'doctype'], | ||
| style: { | ||
| color: 'rgb(199, 146, 234)', | ||
| fontStyle: 'italic', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['class-name'], | ||
| style: { | ||
| color: 'rgb(255, 203, 139)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['tag', 'operator', 'keyword'], | ||
| style: { | ||
| color: 'rgb(127, 219, 202)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['boolean'], | ||
| style: { | ||
| color: 'rgb(255, 88, 116)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['property'], | ||
| style: { | ||
| color: 'rgb(128, 203, 196)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['namespace'], | ||
| style: { | ||
| color: 'rgb(178, 204, 214)', | ||
| }, | ||
| }, | ||
| ], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| export const lightTheme = { | ||
| plain: { | ||
| color: 'black', | ||
| backgroundColor: '#f8f9fc', | ||
| }, | ||
| styles: [ | ||
| { | ||
| types: ['prolog', 'doctype', 'cdata'], | ||
| style: { | ||
| color: 'slategray', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['punctuation'], | ||
| style: { | ||
| color: '#999', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['namespace'], | ||
| style: { | ||
| opacity: 0.7, | ||
| }, | ||
| }, | ||
| { | ||
| types: ['property', 'tag', 'boolean', 'number', 'constant', 'symbol', 'deleted'], | ||
| style: { | ||
| color: '#905', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['selector', 'attr-name', 'string', 'char', 'builtin', 'inserted'], | ||
| style: { | ||
| color: '#690', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['operator', 'entity', 'url'], | ||
| style: { | ||
| color: '#9a6e3a', | ||
| backgroundColor: 'hsla(0, 0%, 100%, 0.5)', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['atrule', 'attr-value', 'keyword'], | ||
| style: { | ||
| color: '#07a', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['function', 'class-name'], | ||
| style: { | ||
| color: '#DD4A68', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['comment'], | ||
| style: { | ||
| color: 'slategray', | ||
| fontStyle: 'italic', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['regex'], | ||
| style: { | ||
| color: '#e90', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['important'], | ||
| style: { | ||
| color: '#e90', | ||
| fontWeight: 'bold', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['variable'], | ||
| style: { | ||
| color: '#e90', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['bold'], | ||
| style: { | ||
| fontWeight: 'bold', | ||
| }, | ||
| }, | ||
| { | ||
| types: ['italic'], | ||
| style: { | ||
| fontStyle: 'italic', | ||
| }, | ||
| }, | ||
| ], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder if this actually works on a production build, probably not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. It's hard to select the classes but this should do the trick.