Open agoose77 opened 8 months ago
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
I added a few ideas for how this could look from a user's perspective to the top comment
That would be a great feature!
Looking forward to this! In addition to CSS, it might be nice to be able to support SASS / SCSS transpiling into CSS. SASS supports things like variable definitions and many users may find it easier to write SASS than raw CSS (or modify any of the many scss themes). Other popular static site generators, like Hugo, have supported SCSS transpile on the fly for a while now (https://gohugo.io/hugo-pipes/transpile-sass-to-css/), and quarto supports SASS variables as well https://quarto.org/docs/output-formats/html-themes.html#sass-variables.
thanks for this @cboettig - I've included your links into the top comment of the issue and cleaned it up a bit
Hi, I'd like to voice my support for adding the ability to reference raw HTML files in the myst.yml file. This would be valuable for my use case:
I maintain a tool documentation site (https://pachterlab.github.io/seqspec/) and have custom HTML content on a separate site (https://www.sina.bio/seqspec-builder/regions.html). I'd like to embed this custom content at a specific path on the main site (e.g., https://pachterlab.github.io/seqspec/regions.html).
The custom HTML contains an auto-generated table from a database, describing file format features documented on the main site. Colocalizing the docs and examples via MyST would improve user experience.
Ideally, I'd like to reference HTML files in the myst.yml file like this:
toc:
# Auto-generated by `myst init --write-toc`
- file: README.md
- file: docs/INSTALLATION.md
- file: docs/UNIFORM.md
- title: Examples # <-- requested additional feature
children:
- file: docs/regions.html
- file: docs/reads.html
- file: docs/assays.html
- title: Documentation
children:
- file: docs/SEQSPEC_FILE.md
- file: docs/SEQSPEC_TOOL.md
- file: docs/SPECIFICATION.md
- title: Tutorials
children:
- file: docs/TUTORIAL_SIMPLE.md
- file: docs/TUTORIAL_COMPLEX.md
- file: docs/USING_SEQSPEC.ipynb
- file: docs/SEQ_PRIMER.md
- file: docs/CONTRIBUTING.md
- file: docs/CHANGELOG.md
This feature would significantly enhance my workflow and improve documentation integration.
This is super cool work @sbooeshaghi, thanks for sharing!
Thinking about the implementation of this:
start
command to be defined, and allowing for files in the template which is already possible).class
to every directive.Adding classes to everything can happen right away. I would like a bit more discussion on how to add/compile css.
Agree on both points.
We can refine (1) to see how hard SCSS vs CSS inclusion is, because SCSS covers all use cases with the caveat of needing tooling.
Idea: support custom class on page in the frontmatter.
👋 can't wait for styling of JupyterBook v2 ... These days I'm adding Tufte-like styling to my individual notebooks, e.g. http://go.gwu.edu/engcomp3lesson4
Users often want to define custom styling (CSS, SCSS, or SASS) for their site. This allows them to do lightweight theming without needing to create an entirely new theme. It also allows authors to make page-specific styling for certain UI components etc.
Proposal
We should allow users to:
myst.yml
)Inspiration
myst.yml
. here's how sphinx does this<style>
tags)myst.yml
(e.g. a key likesite.style: <scss rules to add to the page or the website>
)Related
Tasks and updates
myst-theme.scss