Skip to content

feat(devcontainer): customize dev environment and add VS Code tasks#38

Open
arnaudlh wants to merge 2 commits intoAzure:mainfrom
arnaudlh:feat/devcontainer-customization
Open

feat(devcontainer): customize dev environment and add VS Code tasks#38
arnaudlh wants to merge 2 commits intoAzure:mainfrom
arnaudlh:feat/devcontainer-customization

Conversation

@arnaudlh
Copy link
Copy Markdown
Member

This pull request improves the development environment setup for the documentation website by adding Node.js 25 support, automating dependency installation, and introducing VS Code tasks for building and serving the docs site. It also configures port forwarding for easier local access and enhances VS Code integration.

Dev Container and Environment Improvements:

  • Added the Node.js 25 feature to .devcontainer/devcontainer.json to ensure the correct Node version is available for documentation site development.
  • Configured port 3333 to be forwarded and labeled as "Docs Site" for easier local access and notifications when the docs site is running.

Automation of Docs Setup:

  • Updated .devcontainer/post-create.sh to automatically install website dependencies (npm install in website/) after the container is created, streamlining the setup process.

VS Code Task Integration:

  • Added a new .vscode/tasks.json file with tasks for installing dependencies, generating docs, building (both local and production), and serving the documentation site, making it easier to manage docs-related workflows from within VS Code.
  • Enabled automatic tasks in VS Code by setting "task.allowAutomaticTasks": "on" in the devcontainer settings, improving developer experience.

- update devcontainer.json with project-specific settings
- extend post-create.sh with additional setup steps
- add VS Code tasks for docs build and serve workflows

🛠️ - Generated by Copilot
@arnaudlh arnaudlh added the documentation Improvements or additions to documentation label Apr 29, 2026
@arnaudlh arnaudlh self-assigned this Apr 29, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the docs-site developer experience by enhancing the devcontainer (Node availability + port forwarding), automating setup steps after container creation, and adding VS Code tasks for common documentation workflows.

Changes:

  • Add VS Code tasks to install deps, generate docs, build, and run the docs site on port 3333.
  • Update devcontainer setup to install website dependencies automatically after creation.
  • Configure the devcontainer to forward port 3333 and add a Node feature configuration.
Show a summary per file
File Description
.vscode/tasks.json Adds VS Code tasks for docs install/generate/build/serve workflows.
.devcontainer/post-create.sh Automates installing website dependencies (and installs sandbox dependencies) during container creation.
.devcontainer/devcontainer.json Adds Node feature + forwards port 3333 with a friendly label and notification behavior.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

# Install Docusaurus website dependencies
echo "==> Installing website dependencies..."
if [ -f website/package.json ]; then
(cd website && npm install --no-audit --no-fund)
Comment thread .vscode/tasks.json
{
"label": "Docs: Install",
"type": "shell",
"command": "npm install",
"ghcr.io/devcontainers/features/copilot-cli:1": {}
"ghcr.io/devcontainers/features/copilot-cli:1": {},
"ghcr.io/devcontainers/features/node:2.0.0": {
"version": "25"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants