Skip to content

Commit

Permalink
change publishing system to mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Mar 22, 2024
1 parent 4dd1d56 commit e775ce5
Show file tree
Hide file tree
Showing 80 changed files with 5,205 additions and 3,708 deletions.
82 changes: 0 additions & 82 deletions .github/workflows/hugo.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: site
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- name: Deploy site
run: mkdocs gh-deploy --force
11 changes: 1 addition & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ just a few small guidelines you need to follow.
Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution;
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to <https://cla.developers.google.com/> to see
your current agreements on file or to sign a new one.

You generally only need to submit a CLA once, so if you've already submitted one
(even if it was for a different project), you probably don't need to do it
again.
part of the project.

## Code reviews

Expand All @@ -22,7 +17,3 @@ use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.

## Community Guidelines

This project follows
[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/).
3 changes: 0 additions & 3 deletions Dockerfile

This file was deleted.

72 changes: 12 additions & 60 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,27 @@
# Polaris Documentation

This **Polaris proposal tool documenation** uses the Docsy
theme component as a hugo module, together with other module dependencies:
This **Polaris proposal tool documentation** uses the mkdocs material theme

```console
$ hugo mod graph
hugo: collected modules in 566 ms
hugo: collected modules in 578 ms
github.com/google/docsy-example github.com/google/[email protected]
github.com/google/docsy-example github.com/google/docsy/[email protected]
github.com/google/docsy/[email protected] github.com/twbs/[email protected]+incompatible
github.com/google/docsy/[email protected] github.com/FortAwesome/[email protected]
```
You can find detailed theme instructions in the [mkdodcs material site](https://squidfunk.github.io/mkdocs-material/).

You can find detailed theme instructions in the [Docsy user guide][].
## plantuml

```shell
pip install plantuml-markdown
```

https://github.com/neurobin/mdx_include - proper extension structure -> https://github.com/mikitex70/plantuml-markdown need that doing...

## Running the website locally

Building and running the site locally requires a recent `extended` version of [Hugo](https://gohugo.io).
You can find out more about how to install Hugo for your environment in our
[Getting started](https://www.docsy.dev/docs/getting-started/#prerequisites-and-installation) guide.
Building and running the site locally requires python with the `mkdocs-material` package installed.
You can find out more about how to install mkdocs material for your environment in our
[Getting started](https://squidfunk.github.io/mkdocs-material/getting-started/) guide.

Once you've made your working copy of the site repo, from the repo root folder, run:

```bash
hugo server
mkdocs server
```

## Running a container locally

You can run the guide site inside a [Docker](https://docs.docker.com/)
container, the container runs with a volume bound to the `docsy-example`
folder. This approach doesn't require you to install any dependencies other
than [Docker Desktop](https://www.docker.com/products/docker-desktop) on
Windows and Mac, and [Docker Compose](https://docs.docker.com/compose/install/)
on Linux.

1. Run the built image

```bash
docker compose up
```


1. Verify that the service is working.

Open your web browser and type [http://localhost:1313](http://localhost:1313) in your navigation bar,
This opens a local instance of the guide homepage. You can now make
changes to the guide and those changes will immediately show up in your
browser after you save.

### Cleanup

To stop Docker Compose, on your terminal window, press **Ctrl + C**.

To remove the produced images run:

```bash
docker compose rm
```
For more information see the [Docker Compose documentation][].



[alternate dashboard]: https://app.netlify.com/sites/goldydocs/deploys
[deploys]: https://app.netlify.com/sites/docsy-example/deploys
[Docsy user guide]: https://docsy.dev/docs
[Docsy]: https://github.com/google/docsy
[example.docsy.dev]: https://example.docsy.dev
[Hugo theme module]: https://gohugo.io/hugo-modules/use-modules/#use-a-module-for-a-theme
[Netlify]: https://netlify.com
[Docker Compose documentation]: https://docs.docker.com/compose/gettingstarted/
and navigate to http://127.0.0.1:8000/
6 changes: 0 additions & 6 deletions assets/scss/_variables_project.scss

This file was deleted.

15 changes: 0 additions & 15 deletions config.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions content/en/_index.md

This file was deleted.

36 changes: 0 additions & 36 deletions content/en/about/index.md

This file was deleted.

8 changes: 0 additions & 8 deletions content/en/blog/_index.md

This file was deleted.

4 changes: 0 additions & 4 deletions content/en/blog/news/_index.md

This file was deleted.

Binary file not shown.
Loading

0 comments on commit e775ce5

Please sign in to comment.