Skip to content

Commit 73d3169

Browse files
authored
Demos README remove header (micro-ROS#135)
* Added VSC devcontainer for local testing * Remove header from demos
1 parent be98583 commit 73d3169

5 files changed

Lines changed: 89 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#-------------------------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
4+
#-------------------------------------------------------------------------------------------------------------
5+
6+
# To fully customize the contents of this image, use the following Dockerfile instead:
7+
# https://github.com/microsoft/vscode-dev-containers/tree/v0.106.0/containers/ubuntu-18.04-git/.devcontainer/Dockerfile
8+
FROM mcr.microsoft.com/vscode/devcontainers/base:0-ubuntu-18.04
9+
10+
ENV DEBIAN_FRONTEND=noninteractive
11+
RUN apt-get update \
12+
&& apt-get -y install --no-install-recommends build-essential ruby ruby-dev locales zlib1g-dev \
13+
&& gem install bundler \
14+
#
15+
# Clean up
16+
&& apt-get autoremove -y \
17+
&& apt-get clean -y \
18+
&& rm -rf /var/lib/apt/lists/*
19+
20+
RUN echo "en_US UTF-8" > /etc/locale.gen \
21+
&& locale-gen en_US.UTF-8
22+
23+
ENV LANG=en_US.UTF-8
24+
ENV LANGUAGE=en_US:en
25+
ENV LC_ALL=en_US.UTF-8
26+
ENV DEBIAN_FRONTEND=dialog
27+
28+
# TEST COMMANDS:
29+
# bundle install
30+
# bundle exec jekyll serve
31+

.devcontainer/devcontainer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.106.0/containers/ubuntu-18.04-git
3+
{
4+
"name": "Ubuntu 18.04 & Git",
5+
"dockerFile": "Dockerfile",
6+
7+
// Set *default* container specific settings.json values on container create.
8+
"settings": {
9+
"terminal.integrated.shell.linux": "/bin/bash"
10+
},
11+
12+
// Add the IDs of extensions you want installed when the container is created.
13+
"extensions": []
14+
15+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
16+
// "forwardPorts": [],
17+
18+
// Use 'postCreateCommand' to run commands after the container is created.
19+
// "postCreateCommand": "uname -a",
20+
21+
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker.
22+
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
23+
24+
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
25+
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
26+
"runArgs": [ "--net=host"],
27+
28+
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
29+
// "remoteUser": "vscode"
30+
}

_docs/tutorials/demos/crazyflie_demo/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Crazyflie Demo
3+
layout: docs_noheader
34
permalink: /docs/tutorials/demos/crazyflie_demo/
45
redirect_from:
56
- /crazyflie_demo/

_docs/tutorials/demos/tof_demo/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Time of Flight Sensor Demo
3+
layout: docs_noheader
34
permalink: /docs/tutorials/demos/tof_demo/
45
---
56

_layouts/docs_noheader.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="container">
6+
<div class="row">
7+
<div class="col-md-4">
8+
{% include docs_nav.html %}
9+
</div>
10+
11+
<div class="col-md-8">
12+
<div id="markdown-content-container">{{ content }}</div>
13+
<div style="clear:both;">
14+
<p class="text-center">
15+
<br />
16+
<a target="_blank" href="{{site.git_edit_address}}/{{ page.path }}" class="btn btn-default githubEditButton" role="button">
17+
<i class="fa fa-pencil fa-lg"></i> Improve this page
18+
</a>
19+
</p>
20+
</div>
21+
<hr>
22+
{% include section_nav.html %}
23+
</div>
24+
25+
</div>
26+
</div>

0 commit comments

Comments
 (0)