Skip to content

Commit

Permalink
Merge pull request #7 from NHSDigital/CCM-5294-setup-jekyll-for-web-cms
Browse files Browse the repository at this point in the history
Ccm 5294 setup jekyll for web cms
  • Loading branch information
RossBugginsNHS authored May 29, 2024
2 parents 4a59b19 + c30b065 commit 95fe2a3
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll
{
"name": "Jekyll",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created.
"postCreateCommand": "jekyll --version && cd docs && bundle install"

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"preLaunchTask": "jekyll"
}
]
}
13 changes: 13 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "jekyll",
"options": {
"cwd": "${workspaceFolder}/docs/"
},
"command": "bundle exec jekyll serve --config _config.yml,_config.dev.yml",
"type": "shell"
}
]
}
2 changes: 2 additions & 0 deletions docs/_config.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

baseurl: "" # the subpath of your site, e.g. /blog

0 comments on commit 95fe2a3

Please sign in to comment.