posit-dev / rsconnect-python

Command line interface for publishing to Posit Connect
https://docs.posit.co/rsconnect-python/
GNU General Public License v2.0
28 stars 20 forks source link

quarto: default name should default to directory name when using index.qmd #543

Open aronatkins opened 6 months ago

aronatkins commented 6 months ago
mkdir VeryInteresting
cd VeryInteresting
echo "very interesting" > index.qmd
rsconnect deploy quarto index.qmd

The content name should default to "VeryInteresting" rather than "index".

aronatkins commented 5 months ago

Alternatively, extract the title from the YAML preamble.

aronatkins commented 5 months ago

When deploying with an _quarto.yml file, extract the title from that file, if available, falling back to the title in the index.qmd.