Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add yaml lint action (checks and recommends) #1

Merged
merged 13 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/yaml-format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: YAML Lint

on: [push]

jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run markdownlint
uses: nosborn/[email protected]
with:
files: 'source'
ignore_files: 'source/docs/sample.md'
config_file: .markdownlint.yaml
31 changes: 31 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# from - https://github.com/DavidAnson/markdownlint
# schema - https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml

# uses default styling of the cli
defaults: True
extends: null

# MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md013.md
MD013: False
# Number of characters
# line_length: 180
# Number of characters for headings
# heading_line_length: 180
# Number of characters for code blocks
# code_block_line_length: 180
# Include code blocks
# code_blocks: true
# Include tables
# tables: true
# Include headings
# headings: true
# Strict length checking
# strict: false
# Stern length checking
# stern: false

# MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md025.md
MD025: False

# MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md036.md
MD036: False
2 changes: 1 addition & 1 deletion source/docs/mr-a.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Like it's HTML equivalent, `<mr-a>` can be used to wrap other elements, making t
</mr-a>
```

\[example img\]
\[example img\]
4 changes: 2 additions & 2 deletions source/docs/mr-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The `<mr-app>` tag initializes and mr.js app.

## Definition and Usage

calling `<mr-app>` tag initializes mr.js and manages the render loop, physics engine, and other core features such as lighting and controllers/hand-tracking.
calling `<mr-app>` tag initializes mr.js and manages the render loop, physics engine, and other core features such as lighting and controllers/hand-tracking.

The `<mr-app>` tag has three optional attributes:

Expand All @@ -39,4 +39,4 @@ The `<mr-app>` tag has three optional attributes:
* default: `5`
* `debug` - enables various debug features such as physics, stats monitoring
* default: `true`
* note: hold the `=` key to move using arrows keys while in debug mode
* note: hold the `=` key to move using arrows keys while in debug mode
2 changes: 1 addition & 1 deletion source/docs/mr-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ The `<mr-button>`embeds a button in the UI of an `<mr-panel>`.

`<mr-button>` has one optional attribute:

* `onclick`: the function to be called when the button is clicked
* `onclick`: the function to be called when the button is clicked
2 changes: 1 addition & 1 deletion source/docs/mr-div.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ you can then apply CSS
</mr-div>
```

\[example gif\]
\[example gif\]
4 changes: 2 additions & 2 deletions source/docs/mr-entity.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ istag: true
---
# &lt;mr-entity&gt;

`<mr-entity>` is the most fundamental mr.js element. It is an empty entity and contains no default properties of it's own.
`<mr-entity>` is the most fundamental mr.js element. It is an empty entity and contains no default properties of it's own.

## Example

Expand All @@ -20,4 +20,4 @@ istag: true

## Definition and Usage

There are endless uses for `<mr-entity>` the simplest of which simplest is to group other elements together, such that they can be moved, rotated, scaled, and otherwise manipulated as a single entity. as shown in the example above.
There are endless uses for `<mr-entity>` the simplest of which simplest is to group other elements together, such that they can be moved, rotated, scaled, and otherwise manipulated as a single entity. as shown in the example above.
2 changes: 1 addition & 1 deletion source/docs/mr-img.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Images are not technically inserted into a web page; images are linked to web pa
The `<mr-img>` tag has two required attributes:

* `src` - Specifies the path to the image
* `alt` - Specifies an alternate text for the image, if the image, for some reason, cannot be displayed, or if the user uses a screen reader.
* `alt` - Specifies an alternate text for the image, if the image, for some reason, cannot be displayed, or if the user uses a screen reader.
2 changes: 1 addition & 1 deletion source/docs/mr-light.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ istag: true

## Shadows

for performance reasons, `<mr-light>` cannot cast shadows. Please use the global lighting for shadows.
for performance reasons, `<mr-light>` cannot cast shadows. Please use the global lighting for shadows.
2 changes: 1 addition & 1 deletion source/docs/mr-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ istag: true
* STL
* OBJ
* USDZ
* ?
* ?
6 changes: 3 additions & 3 deletions source/docs/mr-panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ istag: true
---
# &lt;mr-panel&gt;

The `<mr-panel>` tag creates a 2.5D UI panel.
The `<mr-panel>` tag creates a 2.5D UI panel.

**Currently limited to one UI panel per app**

Expand All @@ -22,7 +22,7 @@ The `<mr-panel>` tag creates a 2.5D UI panel.

## Definition and Usage

calling `<mr-panel>` tag initializes and manages 2D UI, such as images, text, and buttons.
calling `<mr-panel>` tag initializes and manages 2D UI, such as images, text, and buttons.

```html
<mr-panel>
Expand Down Expand Up @@ -55,4 +55,4 @@ mr.js supports 2.5D UI, adding a bit of depth to buttons, and incorporating 3D c
</mr-panel>
```

\[example gif\]
\[example gif\]
2 changes: 1 addition & 1 deletion source/docs/mr-skybox.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ istag: true

`<mr-skybox>` has one required attribute:

* `src`: the src image file to be applied to the skybox
* `src`: the src image file to be applied to the skybox
2 changes: 1 addition & 1 deletion source/docs/mr-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ let material = new THREE.MeshLambertMaterial({ color: 0xffffff,
map: texture });

text.textObj.material = material
```
```
2 changes: 1 addition & 1 deletion source/docs/mr-textarea.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ The `<mr-textare>` creates a large text input field in the UI of an `<mr-panel>`
</mr-app>
```

\[example img\]
\[example img\]
2 changes: 1 addition & 1 deletion source/docs/mr-textfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ The `<mr-textfield>` creates a text input field in the UI of an `<mr-panel>`.

## Definition and Usage

`<mr-textfield>`Is the simplest way to capture keyboard input, enabling more practical interactions such as form submission or search input, without needing to exit a spatial experience.
`<mr-textfield>`Is the simplest way to capture keyboard input, enabling more practical interactions such as form submission or search input, without needing to exit a spatial experience.
4 changes: 2 additions & 2 deletions source/docs/volumetrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: "A page about volumetrics?"
---
# Should we have a page about Volumetrics?

```
```text
┐(´ー`)┌
```
```
1 change: 0 additions & 1 deletion source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ list: true
1. **Open-source and extendable**: Built on top of web standards, you can implement custom elements and contribute to the ecosystem.
2. **Familiar and powerful**: Looks and feels like existing libraries, but designed from the ground up for mixed-reality. Start with 2D and ease your way into creating 3D content.
3. **All-in-one**: Asset management, physics, and user interaction come built in, so you can spend less time laying the foundation and more time building your app.

Loading