{"library":"mkdocs","code":"import os\n\n# Create a new MkDocs project\nos.system(\"mkdocs new my-docs-project\")\n\n# Change into the project directory\nos.chdir(\"my-docs-project\")\n\n# Start the development server (runs in the background for this example)\n# In a real scenario, you'd run this from your terminal and visit http://127.0.0.1:8000\nprint(\"Run 'mkdocs serve' in your terminal in the 'my-docs-project' directory to preview your site.\")\nprint(\"To open in browser automatically: 'mkdocs serve --open'\")","lang":"python","description":"This quickstart demonstrates how to create a new MkDocs project and start its built-in development server. The `mkdocs new` command scaffolds a basic project structure with a `mkdocs.yml` configuration file and a `docs/` directory for your Markdown content. The `mkdocs serve` command then launches a local server with live-reloading for development.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":0},{"runtime":"python:3.10-slim","exit_code":0},{"runtime":"python:3.11-alpine","exit_code":0},{"runtime":"python:3.11-slim","exit_code":0},{"runtime":"python:3.12-alpine","exit_code":0},{"runtime":"python:3.12-slim","exit_code":0},{"runtime":"python:3.13-alpine","exit_code":0},{"runtime":"python:3.13-slim","exit_code":0},{"runtime":"python:3.9-alpine","exit_code":0},{"runtime":"python:3.9-slim","exit_code":0}]}