Comments (1)
I managed to get deeplinks.js
working with the existing html renderer configuration options however it was a bit clunky:
additional-js
doesn't work as deeplinks.js
is a module and additional-js
doesn't account for that. additonal-js
also doesn't copy over dependency imports. Maybe we could define a folder inside of theme that was copied over completely?
I was able to get this working by including a folder in my src
directory as js
which is copied over to the final book (any name works really). I then changed my theme/head.hbs
to:
<script type="module" src="{{path_to_root}}/js/deeplinks.js"></script>
and included this additional-css
:
* {
scroll-margin-block-start: calc(var(--menu-bar-height) + 2em);
}
from mdbook.
Related Issues (20)
- Add `tsx` support HOT 1
- Images cannot be displayed when there is a space in the images' name. HOT 3
- Syntax highlighting for console interactions HOT 1
- Better syntax highlighting support - consider switchting from HighlightJS to Prism
- sidebar doesn't close or content invisible HOT 3
- Running mdbook serve from Program files sub folder on Wndows 11
- No RTL Support & Search not working for languages like arabic or persian! HOT 6
- Markdown blockquote parsing issue with inline tags HOT 4
- the package `mdbook` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features. HOT 4
- Allow set based indexing for including lines from files
- When generating a pdf, automatically generate the directory as a bookmark HOT 1
- Viewing/Editing summary.md deletes all my files HOT 3
- Is there a way to differentiate external links?
- Is it possible to remove the next/previous page buttons? HOT 2
- mdbook uninstalls itself when running from a UNC file share
- maintain the sidebar size
- Vega-Altair html is not converted properly into html HOT 2
- Specific ligatures not working HOT 5
- Is it possible to specify relative paths outside of the book directory ? HOT 2
- Codegen/profile options in configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdbook.