![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
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.
react-cayman
Advanced tools
The popular cayman theme implemented as a React component!
with npm npm react-cayman
.
or yarn add react-cayman
.
This component support markdown out of the box using markdown-it. In this
example the testReadme.md
file is loaded and rendered on the screen. In this case CaymanPage
is expected to have a
single child which is the loaded markdown as text(string!).
import React, {useEffect, useState} from 'react';
import CaymanPage from 'react-cayman';
import readmePath from './testReadme.md';
function App() {
const [text, setText] = useState('');
useEffect(() => {
fetch(readmePath)
.then((response) => {
return response.text();
})
.then((text) => {
setText(text);
});
}, []);
return (
<div className="App">
<CaymanPage
repoName={'your repo name - main header'}
repoUrl="https://github.com/<username>/<repo-name>"
repoDescription={'one line description'}
repoOwner="https://github.com/<username>">
{text}
</CaymanPage>
</div>
);
}
export default App;
in case you want to use your own markdown or in case you don't want the content page to be markdown use this component like this:
import React, {useEffect, useState} from 'react';
import CaymanPage from 'react-cayman';
import readmePath from './testReadme.md';
function App() {
return (
<div className="App">
<CaymanPage
repoName={'your repo name - main header'}
repoUrl="https://github.com/<username>/<repo-name>"
repoDescription={'one line description'}
repoOwner="https://github.com/<username>"
markdown={false} //notice !
>
<div>
hello world!
</div>
<p>Your custom html here</p>
</CaymanPage>
</div>
);
}
export default App;
this demo (at this repo at ./example) will create cayman page for this repo. note that this is a React component. code sandbox: https://codesandbox.io/s/github/Eliav2/react-cayman/tree/main/example
Cayman theme for GitHub Pages is implemented with Jekyll which uses Liquid and other dependencies which relies on Ruby on rails and not Node. this component is refactored, so you could simply 'react import' it, and it uses the original cayman theme styles.
if any other usage is needed fork this repo and edit it for your needs.
See CHANGELOG.md in this repo.
FAQs
The popular Cayman theme as a React component
We found that react-cayman demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.