Welcome to the Statescope website repository! This repository powers the official documentation and tutorials for BLADE (Bayesian Log-Normal Deconvolution), hosted on Netlify.
oncoBLADE/
├── docs/ # Markdown files for the website content
├── src/ # Custom React components and styles
├── static/ # Static assets (images, etc.)
├── sidebars.js # Sidebar configuration
├── docusaurus.config.js # Main configuration file
├── package.json # Node.js dependencies
└── README.md # This file
- Sidebar: Modify
sidebars.js
to change the sidebar structure or add new pages. - Navbar: Update
docusaurus.config.js
in thethemeConfig
section to add or edit navbar items. - Pages: Add or edit Markdown files in the
docs/
directory to create or modify website content.
The content of the website is stored as Markdown files in the docs/
directory. Each document corresponds to a specific page on the website. For example:
-
If you want to edit the Installation Guide, locate the file
installation.md
in thedocs/
directory:oncoBLADE/ ├── docs/ ├── installation.md
-
Open
installation.md
in your preferred text editor, make your changes, and save the file.
After editing, follow the contribution steps to commit and push your changes.
git clone https://github.com/tgac/oncoBLADE.git
cd oncoBLADE
Ensure you have Node.js installed. Then, install the required dependencies:
npm install
To preview the website locally:
npm run start
Visit http://localhost:3000
in your browser to view the site.
To build the static files for production:
npm run build
The generated static files will be in the build
directory.
To build the static files for production:
USE_SSH=true GIT_USER=aryamaanbose npm run deploy
The generated static files will be in the build
directory.
The sidebar is controlled by the sidebars.js
file. To add a new document:
- Open
sidebars.js
and locate the appropriate section. - Add the new document's ID. For example:
{
type: 'doc',
id: 'new-document', // Ensure 'new-document.md' exists in the docs folder
label: 'New Document',
}
The top navigation bar is managed in docusaurus.config.js
. To add a new item:
- Open
docusaurus.config.js
. - Locate the
navbar
section inthemeConfig
. - Add a new item to the
items
array. For example:
{
type: 'doc',
docId: 'new-page',
position: 'left',
label: 'New Page',
},
Pages in Docusaurus are written in Markdown. Add new content by creating .md
files in the docs/
directory. Use the following elements in Markdown:
To add code snippets, use triple backticks (```):
```python
# Example Python code
def hello_world():
print("Hello, world!")
#### Adding Links to Other Pages
To link to another page in the docs:
```markdown
[Go to Installation Guide](./installation.md)
Follow the Getting Started section to clone the repository.
Edit files locally. You can use any text editor or IDE.
git add .
git commit -m "Describe your changes"
git push origin branch-name
Once pushed, changes will be reflected on the deployed site if you have permissions.
The website is deployed on Netlify. Every push to the main
branch triggers a redeployment. The live site can be accessed at:
For questions or contributions, please contact:
- Repository Maintainer: Aryamaan Bose
- GitHub Organization: TGAC