forked from azl397985856/leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
robot
committed
Mar 20, 2022
1 parent
778bc6c
commit d3a3e30
Showing
5 changed files
with
160 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// const util = require("util"); | ||
// const glob = util.promisify(require('glob')); | ||
// const fs = require("fs").promises; | ||
// const path = require('path'); | ||
|
||
|
||
// async function main() { | ||
// var errors = []; | ||
// var directories = await glob(__dirname + '../../**/*.md'); | ||
|
||
// for (var filePath of directories) { | ||
// var data = await fs.readFile(filePath, 'utf8'); | ||
// var filename = path.parse(filePath).base.replace(".md", ""); | ||
|
||
// // do check | ||
// } | ||
|
||
// if (errors.length > 0) { | ||
// for (var error of errors) { | ||
// console.error(error + "\n"); | ||
// } | ||
|
||
// var message = `Found ${errors.length} errors! Please fix!`; | ||
// throw new Error(message); | ||
// } | ||
// } | ||
|
||
// main(); | ||
|
||
console.log('TO BE IMPLEMENTED') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
markdown-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
cache: "npm" | ||
- name: Install packages | ||
run: sudo gem install mdl | ||
- name: Get file changes | ||
id: get_file_changes | ||
uses: trilom/[email protected] | ||
with: | ||
output: " " | ||
- name: Echo file changes | ||
run: | | ||
echo Changed files: ${{ steps.get_file_changes.outputs.files }} | ||
- name: Lint markdown files | ||
run: mdl ${{ steps.get_file_changes.outputs.files}} | ||
- run: npm install | ||
- run: node .github/check-format.js | ||
# Suppress 036 Emphasis used instead of a header | ||
# Suppress 024 Multiple headers with the same content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
all | ||
# 我想让图片居中,单纯的 md 似乎做不到,所以使用 raw html 来实现 | ||
exclude_rule 'MD033' | ||
# 仅仅是强调,不需要用 header | ||
exclude_rule 'MD036' | ||
# 这个 rule 有 bug? | ||
exclude_rule 'MD029' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
style '.mdl_style.rb' |
Oops, something went wrong.