Skip to content

Commit

Permalink
Switch to the AEP site generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrankel committed Oct 6, 2023
1 parent d7b1401 commit bd68f51
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install the site generator.
run: pip install -r requirements.txt
- name: Build the static site.
run: aip-site-gen . out
run: aep-site-gen . out
- name: Publish the static site to GitHub Pages.
uses: jamesives/github-pages-deploy-action@releases/v4-init
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- name: Install the site-generator
run: pip install -r requirements.txt
- name: Build the site.
run: aip-site-gen . /out
run: aep-site-gen . /out
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ If you have [Docker][3] installed, clone this repository and run the `serve.sh`
file at the root of the repository. This script does two things:

- It builds the provided Docker image (unless you already have it) and tags it
as `aip-site`.
- It runs the `aip-site` image.
as `aep-site`.
- It runs the `aep-site` image.

The development server uses port 4000; point your web browser to
`http://localhost:4000`, and you should see the site.

**Note:** After building the Docker image for the first time, you may
experience issues if Python dependencies change underneath you. If this
happens, remove your Docker image (`docker rmi aip-site`) and run `serve.sh`
happens, remove your Docker image (`docker rmi aep-site`) and run `serve.sh`
again.

### Arguments
Expand All @@ -46,7 +46,7 @@ how to do so correctly is:
- Create a Python 3.8 [venv][6]. Once it is created, activate it in your shell
(`source path/to/venv/bin/activate`).
- `pip install git+https://github.com/aip-dev/site-generator.git`
- `aip-site-serve .`
- `aep-site-serve .`

## Contributor License Agreement

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ EXPOSE 35729

# Run the development server.
# Reminder: Use -p with `docker run` to publish ports (see `serve.sh`).
ENTRYPOINT ["aip-site-serve", "."]
ENTRYPOINT ["aep-site-serve", "."]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aip-site-generator==0.6.0
aep-site-generator==0.6.6
6 changes: 3 additions & 3 deletions serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# -----------------------------------------------------------------------------

# Build the image (if and only if it is not already built).
if [[ "$(docker images -q aip-site 2> /dev/null)" == "" ]]; then
docker build -t aip-site .
if [[ "$(docker images -q aep-site 2> /dev/null)" == "" ]]; then
docker build -t aep-site .
if [ $? != 0 ]; then
exit $?
fi
Expand All @@ -30,5 +30,5 @@ docker run --rm \
-p 4000:4000/tcp -p 4000:4000/udp \
-p 35729:35729/tcp -p 35729:35729/udp \
--mount type=bind,source=`pwd`,destination=/code/,readonly \
aip-site \
aep-site \
"$@"

0 comments on commit bd68f51

Please sign in to comment.