Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 6da790f

Browse files
author
David Dooling
committed
Migrate to Firebase
Migrate to being deployed to Firebase by atomist-web-sdm. Update README. Remove usused files. Remove markdown-include plugin, which is not supported by the MkDocs-Material Docker image. [changelog:changed]
1 parent c97f10d commit 6da790f

File tree

10 files changed

+38
-182
lines changed

10 files changed

+38
-182
lines changed

.firebaserc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"projects": {
3+
"default": "atomist-web-docs-staging",
4+
"production": "atomist-web-docs-production",
5+
"staging": "atomist-web-docs-staging"
6+
}
7+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,4 @@ site/
100100
.vscode/
101101
.idea
102102
tmp/
103+
.firebase/

.htmltest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
IgnoreURLs:
22
- "https://fonts.gstatic.com"
33
IgnoreDirectoryMissingTrailingSlash: true
4-
DirectoryPath: "site"
4+
DirectoryPath: "site"

README.md

Lines changed: 19 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -52,131 +52,34 @@ changes locally.
5252

5353
### Instant Development environment
5454

55-
If you open this repository in VSCode, and you have Docker, and you have the VSCode extension for remote containers,
56-
then VSCode will offer to open the folder in a container. Accept that, and you'll have a development environment
57-
with the right tools installed.
55+
### Docker
5856

59-
In the terminal inside VSCode, you can type
60-
61-
`serve` and then access your local, hot-reloading version of these docs on localhost:8000.
62-
63-
`build` will build the site and test the links.
64-
65-
You may now skip the rest of this section. Continue with [including code snippets from other repos][code-snippets]
66-
67-
### Working outside Docker
68-
69-
You may need or prefer to install the tools on your computer instead.
70-
71-
#### Install dependencies
72-
73-
The project uses [MkDocs][mkdocs] to generate the static site
74-
and [htmltest][htmltest] to validate the generated HTML. Below
75-
are instructions to install them in a non-obtrusive way.
76-
77-
[htmltest]: https://github.com/wjdp/htmltest
78-
79-
#### MkDocs
80-
81-
First [install Python 3][py-install] using [Homebrew][brew] on Mac OS X.
82-
83-
[py-install]: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Homebrew-and-Python.md
84-
[brew]: https://brew.sh/
57+
You can build the docs with the following command.
8558

8659
```
87-
$ brew install python3 htmltest
60+
$ docker run -it --rm -v "$PWD:/docs" squidfunk/mkdocs-material:5.3.3 build --strict
8861
```
8962

90-
or on Debian-based GNU/Linux distributions
63+
You can also run `htmltest`.
9164

9265
```
93-
$ sudo apt-get install python3-pip htmltest
66+
$ docker run -it --rm -v "$PWD:/test" wjdp/htmltest:v0.12.0 htmltest
9467
```
9568

96-
Then create a [virtual environment][venv] to host the dependencies:
69+
### VS Code
9770

98-
[venv]: https://virtualenv.pypa.io/en/stable/
71+
If you open this repository in VSCode, and you have Docker, and you
72+
have the VSCode extension for remote containers, then VSCode will
73+
offer to open the folder in a container. Accept that, and you'll have
74+
a development environment with the right tools installed.
9975

100-
```
101-
$ pip3 install virtualenv
102-
$ mkdir ~/.venvs
103-
$ echo "export PIP_REQUIRE_VIRTUALENV=true" >> ~/.bashrc
104-
$ source ~/.bashrc
105-
$ virtualenv ~/.venvs/docs
106-
```
107-
108-
With the virtual environment created, activate it in the current
109-
terminal:
110-
111-
```
112-
$ . ~/.venvs/docs/bin/activate
113-
```
114-
115-
and install the dependencies into it:
116-
117-
```
118-
$ pip install -r requirements.txt
119-
```
120-
121-
#### Testing and serving
122-
123-
Every time you want to work on this repository, you need to activate
124-
the Python virtualenv in your working terminal:
125-
126-
```
127-
$ . ~/.venvs/docs/bin/activate
128-
```
129-
130-
After making changes, you can test them by building the documentation
131-
in strict mode.
132-
133-
```
134-
$ mkdocs build --strict
135-
```
136-
137-
The run `htmltest`.
138-
139-
```
140-
$ htmltest -c .htmltest.yml site
141-
```
142-
143-
To review your changes in a browser, you can serve the documentation
144-
locally by running:
145-
146-
```
147-
$ mkdocs serve
148-
```
149-
150-
and browse the documentation at http://127.0.0.1:8000 . To stop the
151-
server, press `Ctrl-C` in the terminal.
152-
153-
## Code snippets
154-
155-
[code-snippets]: #code-snippets
156-
157-
You can create code snippets in the [atomist/samples][samples]
158-
repo. Demarcate a code snippet using the following comment
159-
160-
```typescript
161-
// atomist:code-snippet:start=SNIPPET_NAME
162-
CODE HERE
163-
// atomist:code-snippet:end
164-
```
165-
166-
replacing `SNIPPET_NAME` with a unique name for the snippet.
167-
168-
You can then include that snippet in the docs using the following HTML
169-
comment in the Markdown source.
76+
In the terminal inside VSCode, you can type
17077

171-
```html
172-
<!-- atomist:code-snippet:start=SNIPPET_NAME -->
173-
<!-- atomist:code-snippet:end -->
174-
```
78+
`serve` and then access your local, hot-reloading version of these docs on localhost:8000.
17579

176-
Then, when either this docs repo or the samples repo is updated, the
177-
snippets will be updated in this docs repo.
80+
`build` will build the site and test the links.
17881

179-
[samples]: https://github.com/atomist/samples
82+
You may now skip the rest of this section. Continue with [including code snippets from other repos][code-snippets]
18083

18184
## Styles
18285

@@ -227,16 +130,14 @@ Items on the same line create a visually equivalent admonition.
227130
## Releasing
228131

229132
When a push is made to this repository, the documentation is built by
230-
the [docs-sdm][] and published to the S3 bucket
231-
[docs-sdm.atomist.com][docs-sdm-s3] under a path starting with the
232-
full commit SHA.
133+
[atomist-web-sdm][] and published to
134+
[https://docs.atomist.services/][docs-staging].
233135

234-
If the publication to the docs-sdm bucket is approved, the site is
235-
"published" to the docs.atomist.com S3 bucket, making it available at
136+
If the the staging deployment is approved, the site is "published" to
236137
[https://docs.atomist.com/][atomist-doc].
237138

238-
[docs-sdm]: https://github.com/atomist/docs-sdm
239-
[docs-sdm-s3]: http://docs-sdm.atomist.com.s3-website-us-west-2.amazonaws.com/
139+
[atomist-web-sdm]: https://github.com/atomist/atomist-web-sdm
140+
[docs-staging]: https://docs.atomist.services/
240141

241142
### Updating dependencies
242143

@@ -256,15 +157,6 @@ To update html-proofer and its dependencies:
256157
$ bundle update
257158
```
258159

259-
### Shortcut
260-
261-
The `activate_and_serve.sh` script activates the virtual environment
262-
and builds, proofs, and serves the docs with a single command.
263-
264-
```shell
265-
./activate_and_serve.sh
266-
```
267-
268160
## Conditions of use
269161

270162
This documentation build process is provided to the public purely for

activate_and_serve.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

common/tbd.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

firebase.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"hosting": {
3+
"public": "site",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
]
9+
}
10+
}

mkdocs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ repo_name: GitHub
55
repo_url: https://github.com/atomist/docs
66
edit_uri: edit/master/docs/
77
copyright: "&copy; 2020 Atomist, Inc."
8-
dev_addr: 0.0.0.0:8000 # make 'mkdocs serve' work in Docker
98
extra:
109
main_site_url: https://atomist.com/
1110
social:
@@ -28,8 +27,6 @@ theme:
2827
extra_css:
2928
- stylesheets/extra.css
3029
markdown_extensions:
31-
- markdown_include.include:
32-
base_path: "common"
3330
- admonition
3431
- codehilite:
3532
guess_lang: false

rename-css.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Markdown==2.6.10
2-
markdown-include==0.5.1
32
mkdocs==1.0.4
43
mkdocs-material==3.3.0
54
Pygments==2.2.0

0 commit comments

Comments
 (0)