Skip to content

v0.8.0

Choose a tag to compare

@AZQ1994 AZQ1994 released this 24 Oct 08:19
· 33 commits to main since this release
d44f291

Buttons that start GitHub Actions workflows, so a site can keep the editor on its test copy only;
and a sidebar that can be made wider.

  • actions in config.json. Each entry is a sidebar button: a label, a workflow with a
    workflow_dispatch trigger, and optionally the ref to run on (the content branch by default),
    fixed inputs, the confirm text, and a url to link once it succeeds. A click confirms —
    warning about unsaved changes in the open article — starts the workflow, and the line under the
    button follows the run to the end. The typical use: the editor lives on a test site built from
    main, and a button publishes main to the live site, which is built without the editor. The
    GitHub App needs Actions: Read and write for them; without actions, nothing changes and
    Read-only is still enough. See Action buttons.
  • Resizable sidebar. Drag the sidebar's right edge to make the article list wider or narrower
    (or focus it and use the arrow keys); the width is kept in the browser, and a double-click puts
    it back. Phones keep the drawer as it was.

npm: https://www.npmjs.com/package/simple-git-cms