Skip to content

confusing guide - missing body.css #1429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RustyJoeM opened this issue Jan 5, 2021 · 1 comment · Fixed by #1431
Closed

confusing guide - missing body.css #1429

RustyJoeM opened this issue Jan 5, 2021 · 1 comment · Fixed by #1431
Labels
A-Documentation Area: Documentation

Comments

@RustyJoeM
Copy link

Hello,

I'm trying to modify the theme and would like to add custom background, change style of paragraph etc.

Reading the guide (https://rust-lang.github.io/mdBook/format/theme/index.html) - body.css file seems to be place to be edited... However, i fail to find such file in the location propsed by the guide...

Did i misunderstand some concept, or is the guide out of sync with mdbook behavior?

user@dev:~$ mdbook --version; mdbook init --theme test-book
mdbook v0.4.5

Copying the default theme to src
This could potentially overwrite files already present in that directory.

Are you sure you want to continue? (y/n) y

Do you want a .gitignore to be created? (y/n)
y
What title would you like to give the book?
hello
2021-01-05 19:56:06 [INFO] (mdbook::book::init): Creating a new book with stub content

All done, no errors...
user@dev:~$ tree ./test-book/
./test-book/
├── book
├── book.toml
└── src
    ├── chapter_1.md
    ├── SUMMARY.md
    └── theme
        ├── book.js
        ├── css
        │   ├── chrome.css
        │   ├── general.css
        │   ├── print.css
        │   └── variables.css
        ├── favicon.png
        ├── favicon.svg
        ├── highlight.css
        ├── highlight.js
        └── index.hbs

4 directories, 13 files
@ehuss
Copy link
Contributor

ehuss commented Jan 6, 2021

The docs look to be a little out of date, I have posted an update at #1431.

You can look at the source of the main template to see how it loads CSS.

@ehuss ehuss added the A-Documentation Area: Documentation label Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Documentation Area: Documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants