Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
vknaisl committed Aug 16, 2023
1 parent a8897f8 commit d106bf4
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

env:
PUBLIC_IMAGE_PREFIX: 'datastewardshipwizard'
IMAGE_NAME: 'guide-changelog'
IMAGE_NAME: 'wizard-changelog'
DOCKER_META_CONTEXT: '.'
DOCKER_META_FILE: './Dockerfile'
DOCKER_META_PLATFORMS: 'linux/amd64,linux/arm64'
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ clean:

.PHONY: docker
docker:
docker build -t guide-changelog:local .
docker run --rm --name "guide-changelog" -p 8888:8080 guide-changelog:local
docker build -t wizard-changelog:local .
docker run --rm --name "wizard-changelog" -p 8888:8080 wizard-changelog:local
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# Guide Changelog
# Wizard Changelog

[![User Guide](https://img.shields.io/badge/docs-User%20Guide-informational)](https://guide.ds-wizard.org)
[![License](https://img.shields.io/github/license/ds-wizard/guide-changelog)](LICENSE)

*Changelog for Data Stewardship Wizard Guide
*Changelog for Data Stewardship Wizard*

### Requirements

- **Python** (recommended 3.11)
- **Makefile** (recommended 3.81)


### Run

For building the changelog, please run the following from the root of the project

```bash
$ make build
```

## License

This project is licensed under the Apache License v2.0 - see the [LICENSE](LICENSE) file for more details.
1 change: 1 addition & 0 deletions assets/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Loaded Wizard changelog...')
4 changes: 2 additions & 2 deletions changelog.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Wizard Guide Changelog
**********************
Wizard Changelog
****************

..
This is a workaround to random anchor links generation by Sphinx
Expand Down
13 changes: 7 additions & 6 deletions scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,25 @@
f_out.write(
line
.replace(
'<title>Wizard Guide Changelog</title>',
"""<title>Wizard Guide Changelog</title>
'<title>Wizard Changelog</title>',
"""<title>Wizard Changelog</title>
<link rel="shortcut icon" href="../assets/favicon.ico">
<script src="../assets/custom.js"></script>
"""
)
.replace(
'<h1 class="title">Wizard Guide Changelog</h1>',
'<h1 class="title">Wizard Changelog</h1>',
''
)
.replace(
'<main id="wizard-guide-changelog">',
'<main id="wizard-changelog">',
"""<header>
<h1>
<img src="./assets/logo.svg" alt="Logo" class="logo">
<div class="title">| Guide Changelog</div>
<div class="title">| Wizard Changelog</div>
</h1>
</header>
<main id="wizard-guide-changelog">
<main id="wizard-changelog">
"""
)
)
Expand Down

0 comments on commit d106bf4

Please sign in to comment.