Skip to content

Commit

Permalink
markdown lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 5, 2024
1 parent 6f853e7 commit fecf4d8
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 18 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/loc-badge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: loc-badge
on:
push:
branches:
- master
concurrency:
group: loc-badge-${{ github.ref }}
cancel-in-progress: true
jobs:
loc-badge:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: shadowmoose/[email protected]
with:
debug: true
directory: .
badge: target/loc-badge.svg
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: target
clean: false
if: github.ref == 'refs/heads/master'
19 changes: 19 additions & 0 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: markdown-lint
on:
push:
branches:
- master
pull_request:
branches:
- master
paths-ignore: [ 'paper/**', 'sandbox/**' ]
concurrency:
group: markdown-lint-${{ github.ref }}
cancel-in-progress: true
jobs:
markdown-lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b32f140b0c872d58512e0a66172253c302617b90
- uses: articulate/actions-markdownlint@v1
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Xembly

<img alt="logo" src="https://www.xembly.org/logo.png" width="64px" height="64px" />

Check failure on line 3 in README.md

View workflow job for this annotation

GitHub Actions / markdown-lint

Line length [Expected: 80; Actual: 83]

Check failure on line 3 in README.md

View workflow job for this annotation

GitHub Actions / markdown-lint

Inline HTML [Element: img]

[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
Expand Down Expand Up @@ -96,21 +98,21 @@ This code will produce the following XML document:

This is a full list of supported directives, in the current version:

* `ADD`: adds new node to all current nodes
* `ADDIF`: adds new node, if it's absent
* `SET`: sets text value of current node
* `XSET`: sets text value, calculating it with XPath
* `XATTR`: sets attribute value, calculating it with XPath
* `CDATA`: same as `SET`, but makes `CDATA`
* `UP`: moves cursor one node up
* `XPATH`: moves cursor to the nodes found by XPath
* `REMOVE`: removes all current nodes
* `STRICT`: throws an exception if cursor is missing nodes
* `PI`: adds processing instruction
* `PUSH`: saves cursor in stack
* `POP`: retrieves cursor from stack
* `NS`: sets namespace of all current nodes
* `COMMENT`: adds XML comment
* `ADD`: adds new node to all current nodes
* `ADDIF`: adds new node, if it's absent
* `SET`: sets text value of current node
* `XSET`: sets text value, calculating it with XPath
* `XATTR`: sets attribute value, calculating it with XPath
* `CDATA`: same as `SET`, but makes `CDATA`
* `UP`: moves cursor one node up
* `XPATH`: moves cursor to the nodes found by XPath
* `REMOVE`: removes all current nodes
* `STRICT`: throws an exception if cursor is missing nodes
* `PI`: adds processing instruction
* `PUSH`: saves cursor in stack
* `POP`: retrieves cursor from stack
* `NS`: sets namespace of all current nodes
* `COMMENT`: adds XML comment

The "cursor" or "current nodes" is where we're currently located
in the XML document. When Xembly script starts, the cursor is
Expand Down Expand Up @@ -446,10 +448,10 @@ Xembly is not intended to be a replacement of XSL or XQuery. It is
a lightweight (!) instrument for XML manipulations. There are a few things
that can't be done by means of Xembly:

* DTD section can't be modified
* DTD section can't be modified

* Elements and text content can't be mixed, e.g.
this structure is not supported: `<test>hello <b>friend</a></test>`
* Elements and text content can't be mixed, e.g.
this structure is not supported: `<test>hello <b>friend</a></test>`

Some of these limitations may be removed in the next versions. Please,
submit [an issue](https://github.com/yegor256/xembly/issues).
Expand Down

0 comments on commit fecf4d8

Please sign in to comment.