VitePress Site Configuration
12 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the purpose of the Site Config in VitePress?

  • Configuring individual page titles
  • Defining global settings of the site (correct)
  • Implementing custom themes
  • Resolving configuration conflicts

Where is the config file always resolved from in a VitePress project?

  • /.vitepress/config.[ext] (correct)
  • /public/configuration/
  • /src/config/
  • /dist/settings/

Which file extensions are supported for the VitePress config file?

  • .js, .ts, .mjs, .mts (correct)
  • .py, .java, .rb
  • .yaml, .toml, .xml
  • .html, .css, .json

What syntax is recommended to be used in VitePress config files?

<p>ES modules syntax (C)</p> Signup and view all the answers

How can TypeScript-powered intellisense be achieved for config options in VitePress?

<p>Using the defineConfig helper (D)</p> Signup and view all the answers

When using a custom theme in VitePress, which helper should be used for type checks of the theme config?

<p>defineConfigWithTheme (C)</p> Signup and view all the answers

What is the purpose of the 'titleTemplate' option in VitePress?

<p>To customize the entire title of each page (C)</p> Signup and view all the answers

How can the title of a VitePress page be customized using ':title' in 'titleTemplate'?

<p>Hello - Custom Suffix (A)</p> Signup and view all the answers

What does setting 'cleanUrls' to true in VitePress do?

<p>Removes the trailing.html from URLs (C)</p> Signup and view all the answers

How does 'srcExclude' in VitePress affect markdown files?

<p>Excludes specific markdown files from source content (C)</p> Signup and view all the answers

What is the purpose of the 'base' option in VitePress?

<p>Specifies the base URL where the site will be deployed (D)</p> Signup and view all the answers

When using 'ignoreDeadLinks' in VitePress, what does setting it to 'localhostLinks' do?

<p>Fails builds due to dead links but excludes localhost links (C)</p> Signup and view all the answers
Use Quizgecko on...
Browser
Browser