Skip to content

Commit

Permalink
Merge pull request #90 from ShellyDCMS/mkdocs
Browse files Browse the repository at this point in the history
generate mkdocs site
  • Loading branch information
ShellyDCMS committed May 25, 2024
2 parents 5a41d1a + 46c3446 commit ef2e094
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 12 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/npm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@ jobs:
node-version: 18.18.2
registry-url: https://registry.npmjs.org/
- run: npx yarn install --frozen-lockfile
- name: "Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version-type: "minor"
- run: npm run build
- run: npm run cy:run
- run: npm run generate-md-docs
- name: Tests Report
uses: phoenix-actions/test-reporting@v8
id: test-report
Expand Down
32 changes: 28 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,36 @@ jobs:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npx yarn install --frozen-lockfile
- name: "Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version-type: "minor"
skip-tag: "true"
target-branch: "main"
- run: npm run build
- name: Build the Docs
run: |
npm run generate-md-docs
docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material build
- name: Publish generated content to GitHub Pages
uses: tsunematsu21/actions-publish-gh-pages@v1.0.2
with:
dir: docs
branch: gh-pages
token: ${{ secrets.ACCESS_TOKEN }}
- run: npm run cy:run
- run: npm run generate-md-docs
- name: Generate html docs
run: npm run generate-docs

- name: Build the Docs
run: |
npm run generate-md-docs
docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material build
- name: Publish generated content to GitHub Pages
uses: tsunematsu21/actions-publish-gh-pages@v1.0.2
with:
dir: site
branch: gh-pages
token: ${{ secrets.ACCESS_TOKEN }}
- name: Publish generated content to GitHub Pages
uses: tsunematsu21/actions-publish-gh-pages@v1.0.2
with:
Expand Down
29 changes: 29 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
site_name: Cypress Test Utils
site_url: ""
use_directory_urls: false
plugins: []
theme:
name: material
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- content.code.copy
- navigation.tabs
- navigation.tabs.sticky
- toc.follow
- search.suggest
- navigation.instant
- navigation.sections
- navigation.top # back to top button
1 change: 1 addition & 0 deletions src/assertable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ export class Assertable<T> {
* };
* public then = (chainable: Cypress.Chainable<any>) => new MyAssertable(chainable);
* }
* ```
*/
export const then = (subject: Cypress.Chainable<any> | any) => {
return new Assertable(
Expand Down
2 changes: 1 addition & 1 deletion typedoc.md.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"./src/lit/index.ts",
"./src/assertable.ts"
],
"out": "documents",
"out": "docs",
"disableSources": true,
"githubPages": false
}

0 comments on commit ef2e094

Please sign in to comment.