Skip to content
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

Create cross references for directory structures #6

Open
mine-cetinkaya-rundel opened this issue Apr 17, 2024 · 1 comment
Open

Create cross references for directory structures #6

mine-cetinkaya-rundel opened this issue Apr 17, 2024 · 1 comment

Comments

@mine-cetinkaya-rundel
Copy link
Owner

Put them in figure divs as well as a div that styles them (e.g., borders, margin/padding, indentation, etc.)

@cwickham
Copy link
Collaborator

cwickham commented May 1, 2024

I added this in the Projects chapter. E.g. in the source:

::: {#fig-dir-quarto .dir-str}

```{r}
file_create(dir, "_quarto.yml")
dir_tree(dir)
```

The folder `ds-project` is now a Quarto project because it contains `_quarto.yml`.

:::

And added the class .dir-str to quarto-tag.scss:

.dir-str {
  @extend .p-2;
  @extend .border;
  @extend .rounded
}

Which renders like this:

Screenshot 2024-05-01 at 4 00 24 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants