Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@vegaprotocol/docusaurus-theme-github-codeblock
Advanced tools
A Docusaurus v2 plugin that supports referencing code examples from public GitHub repositories.
A Docusaurus v2 plugin that supports referencing code examples from public GitHub repositories.
NOTE: This is a fork of the original project, since it's not maintained anymore. It contains a patch to work with docusaurus v2.0.1
.
Note: this theme plugin requires Docusaurus v2
First, add the theme plugin to your dependencies:
npm install @vegaprotocol/docusaurus-theme-github-codeblocks
Add the theme plugin to your list of themes in the docusaurus.config.js
:
// ...
themes: [
'@vegaprotocol/docusaurus-theme-github-codeblock'
],
// ...
In order to reference GitHub snippets in your markdown, create code blocks with a reference
attached to the language meta string and put the link to your GitHub reference in the code block, e.g.:
```js reference
https://github.com/saucelabs/docusaurus-theme-github-codeblock/blob/main/src/theme/ReferenceCodeBlock/index.tsx#L105-L108
```
You can also set a custom title:
```js reference title="Example"
https://github.com/saucelabs/docusaurus-theme-github-codeblock/blob/main/src/theme/ReferenceCodeBlock/index.tsx#L105-L108
```
The plugin will download the code and display the desired lines:
If you are interested contributing to this project, see CONTRIBUTING.md.
v2.0.0-beta.18
FAQs
A Docusaurus v2 plugin that supports referencing code examples from public GitHub repositories.
The npm package @vegaprotocol/docusaurus-theme-github-codeblock receives a total of 2 weekly downloads. As such, @vegaprotocol/docusaurus-theme-github-codeblock popularity was classified as not popular.
We found that @vegaprotocol/docusaurus-theme-github-codeblock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.