Skip to content

Commit

Permalink
Version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
six-two committed Jun 19, 2024
1 parent 8b76c02 commit 474636b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ The corresponding documentation is hosted at <https://dev.mkdocs-placeholder-plu

## Notable changes

### Head
### Version 0.5.0

- Added inline editable placeholders (see [#6](https://github.com/six-two/mkdocs-placeholder-plugin/issues/6)) and enabled them by default.
If you want to disable them by default, add `inline_editors: false` to the `settings` attribute in your `placeholder-plugin.yaml`.
If you want to disable them and prevent users from enabling them, add `normal_is_alias_for: dynamic` to the `settings` attribute in your `placeholder-plugin.yaml`.
- Added inline editable placeholders (see [#6](https://github.com/six-two/mkdocs-placeholder-plugin/issues/6)) and enabled them by default:
- If you want to disable them by default, add `inline_editors: false` to the `settings` attribute in your `placeholder-plugin.yaml`.
- If you want to disable them and prevent users from enabling them, add `normal_is_alias_for: dynamic` to the `settings` attribute in your `placeholder-plugin.yaml`.
- You can choose how inline placeholders look via the [`inline_editor_style` setting](https://mkdocs-placeholder-plugin.six-two.dev/configuration/#inline_editor_style).
- You can now embed the placeholder settings editor anywhere if your page with `<div class="placeholder-settings-panel"></div>`.

### Version 0.4.1
Expand Down Expand Up @@ -166,11 +167,18 @@ This is just for me :)
```bash
pyflakes src
```

Check npm code with podman:
```bash
podman run -it --rm --workdir /typescript -v "$(pwd)/typescript:/typescript" localhost/placeholder-npm:latest npm run lint
```

Or with docker:
```bash
docker run -it --rm --workdir /typescript -v "$(pwd)/typescript:/typescript" placeholder-npm:latest npm run lint
```
2. Update the changelog in this README file.
3. Update version number in `setup.cfg`.
3. Update version number in `./setup.cfg` and `typescript/src/api.ts`.
4. Disable `debug_javascript` in `placeholder-plugin.yaml`.
5. Build and update package.
6. Create a commit for the release (`Version 0.X.Y`) and push it.
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = mkdocs-placeholder-plugin
version = 0.4.1
version = 0.5.0
author = six-two
author_email = pip@six-two.dev
description = Add dynamic placeholders to your mkdocs page
Expand Down
1 change: 0 additions & 1 deletion typescript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ FROM node:latest
WORKDIR /app
COPY package.json package-lock.json in-docker.sh /app/
RUN npm install
RUN npm install --only=dev
VOLUME /mnt
CMD bash ./in-docker.sh
1 change: 1 addition & 0 deletions typescript/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const export_api_functions = (config: PluginConfig) => {
// This is the simplest way to assign something to the window object without TypeScript complaining, so I keep it
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any).PlaceholderPlugin = {
"version": "0.5.0",
"settings": config.settings,
"placeholders": config.placeholders,
"debug_disable_reload": debug_disable_reload,
Expand Down

0 comments on commit 474636b

Please sign in to comment.