Permalink
Browse files

Add cmake target, update website README

  • Loading branch information...
nrabinowitz committed Jan 8, 2019
1 parent ebe248a commit 06ae433f10b87307fda703181301b30b3caa4ce2
Showing with 8 additions and 15 deletions.
  1. +6 −0 CMakeLists.txt
  2. +2 −15 website/README.md
@@ -278,6 +278,12 @@ else()
)
endif()

# Website publishing
add_custom_target(publish-website
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/publish_website.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

# Link all executables against H3
macro(add_h3_executable name)
# invoke built-in add_executable
@@ -17,21 +17,8 @@ npm start

## Updating the H3 Website

From `./website`:
Make sure your `gh-pages` branch has its remote set to the upstream repo, then

Make sure your `gh-pages` branch is up to date with the upstream repo:
```
git checkout gh-pages
git pull upstream gh-pages
```

Switch back to `master` and run the build:
```
git checkout master
./scripts/build-to-gh-pages.sh
```

You're now on branch `gh-pages` again. Push changes to the live site:
```
git push upstream gh-pages:gh-pages
make publish-website
```

0 comments on commit 06ae433

Please sign in to comment.