brain-guides
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: flavioguzman
- Language: Python
- Default Branch: master
- Size: 6.37 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Brain Guides Document Processing System
This repository contains a collection of scripts for processing and formatting markdown documents, specifically designed for Brain Guides documentation. The system handles document concatenation, citation formatting, and image processing.
Core Components
Python Scripts
markdown_converter.py: The main conversion script that processes markdown files into various output formats (primarily HTML). It integrates with Pandoc and applies various Lua filters during the conversion process.concatenate_markdown.py: Combines multiple markdown files within drug-specific folders into single consolidated documents. It:- Preserves YAML front matter from the first file
- Orders sections based on the
orderfield in YAML - Automatically adds a References section
- Names output files based on the
codefield from YAML
Lua Filters
remove-captions.lua: Removes captions, titles, and alt text from images and figures whenremove_captionsis set to true in the configuration.image-size.lua: Sets a consistent width (80%) for all images in the document for better visual presentation.reference-list.lua: Formats the references section with custom styling for better readability and mobile responsiveness.citation-spacing.lua: Ensures proper spacing around citations in the text.
Configuration
The system is configured through config.json, which specifies:
- Bibliography file path
- Citation Style Language (CSL) file path
- Default output format
- Input file path
- Caption removal preferences
Workflow
- Source markdown files are organized in drug-specific folders
concatenate_markdown.pycombines related files into a single documentmarkdown_converter.pyprocesses the consolidated file through Pandoc- Lua filters are applied during conversion to handle:
- Image formatting
- Citation styling
- Reference list formatting
- Caption management
Dependencies
- Python 3.x
- Pandoc
- PyYAML (for markdown concatenation)
Owner
- Login: flavioguzman
- Kind: user
- Repositories: 1
- Profile: https://github.com/flavioguzman
Citation (citation-spacing.lua)
function Cite(cite)
return {pandoc.Space(), cite}
end
GitHub Events
Total
- Member event: 2
- Push event: 8
- Create event: 2
Last Year
- Member event: 2
- Push event: 8
- Create event: 2
Dependencies
- pyyaml >=6.0.1