In overrides directory
- If file name is same as the one provided by the theme, the file would get replaced.
- If the file is new, it would get added to the theme.
site_name:string# Title of projectsite_url:https://...# Set the canonical URL i.e. base pathrepo_name:'KushajveerSingh/notes'# provide the host namerepo_url:https://github...# GitHub urledit_uri:blob/main/docs# path from base `repo_url` to the docs directory and it is used# to view/edit the source page from the websitesite_description:string# To add meta tagsite_author:string# To add meta tagcopyright:string# Copyright info used by the themeremote_branch:gh-pages# When using `gh-deploy` action to deploy to GitHub pages, which# branch to deploy the documentationremote_name:origin# remote name to push to when using `gh-deploy`# Specify the navbar to the side (with prev/next functionality)# Default order is alphanumerical, with index.md files appearing firstnav:-Introduction:'index.md'-'about.md'-'IssueTracker':'https://example.com'# Specify pattern for files not to be included in the build site (like .gitignore)exclude_docs:|.*/templates/# To exclude files from navbar (i.e. hidden files)not_in_nav:|/private.md# Set the theme and theme specific configurationtheme:name:mkdocslocale:endocs_dir:docssite_dir:site# Where the build files are createdextra_css:-...extra_js:-plain.js# <script src="plain.js"></script>-path:plain.js# <script src="plain.js" defer></script>defer:true-path:plain.js# <script src="plain.js" async></script>async:truewatch:# Files to watch for changes in 'mkdocs serve'-docs-mkdocs.ymluse_directory_urls:true# index.md maps to '/', if false it would map to '/index.html'strict:false# Set to true, to halt build process on warningsdev_addr:'127.0.0.0:8000'# Address of 'mkdocs server'markdown_extensions:-name:extension_config:option# Mkdocs add 'search' plugin as default which uses "lunr.js" as the search engineplugins:-search:separator:'[\s\-]+'# Use whitespace and hyphen as word separatorsmin_search_length:3# Minimum length of search query in characterslang:theme.localeprebuild_index:false# Set to true, to generate a pre-built index of all pages# at build time, to improve performance on larger sitesindexing:'full'# reduce the scope to 'sections', 'titles' for larger sites to# reduce the size of index file
Use env variables
You can set the values in mkdocs.yml using environment variables also.
If you have multiple projects, then defining a parent config file can be useful. For this, define the parent base.yml file, and then include it in your current mkdocs.yml file