quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.89k stars 318 forks source link

Make `code-tools` in or under "Other formats" #7436

Open mcanouil opened 11 months ago

mcanouil commented 11 months ago

It was discussed somewhere but cannot find it again. With the manuscript project type and "other formats" linking, it feels code-tools makes less sense in terms of purposes and aesthetics/design.

I am here suggesting to (either or both):

  1. move code-tools in a "section" such as "Other formats".
  2. Make a "Quarto" format which would "link" the source code.

The main reason is that code-tools is less visible and not really pretty with the margin/sidebar.

image
---
title: "Quarto Playground"
format:
  html: default
  pdf: default
toc: true
code-tools: true
---

This is a playground for Quarto.

## Section 1

{{< lipsum 1 >}}

## Section 2

{{< lipsum 1 >}}
allefeld commented 11 months ago

I agree with @mcanouil that the placement of the code tools button is not ideal and would be better under "Other Formats."

If this feature is reworked, I propose to keep in mind that the Quarto source code is not the only (or even the most important) code one might want to link to there; a language-specific script is another one. See my discussion https://github.com/quarto-dev/quarto-cli/discussions/7411.

mcanouil commented 11 months ago

Note (if I am not mistaken) that "random" links are possible in Manuscript project, see https://quarto.org/docs/manuscripts/.