Skip to content

Commit

Permalink
fix: removing toc to fix the docs html (#341)
Browse files Browse the repository at this point in the history
Co-authored-by: Shinigami <[email protected]>
  • Loading branch information
JessicaSachs and Shinigami92 authored Jan 30, 2022
1 parent 9206e7a commit c932942
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ REVISION
.yarn/
package-lock.json
yarn.lock

cypress/screenshots
cypress/videos
1 change: 1 addition & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"video": false,
"e2e": {
"chromeWebSecurity": false,
"baseUrl": "http://localhost:5000",
"integrationFolder": "cypress/e2e",
"testFiles": "**/*.cy.*",
Expand Down
25 changes: 20 additions & 5 deletions cypress/e2e/smoke.cy.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
describe('Smoke Test', () => {
it('compiles the guide page', () => {
beforeEach(() => {
cy.visit('/guide/');
cy.get('a[href="/api/animal.html"]').as('firstSectionLink');
});

it('compiles the guide page', () => {
cy.contains('Getting Started');
});

// it('compiles the playground page', () => {
// cy.visit('/playground/');
// cy.contains('Playground under construction');
// });
it('renders this last code example in the code', () => {
// Click on any section in the sidebar
cy.get('@firstSectionLink')
.click()
// Make sure the number of code examples is the same between reloads
.get('.container pre code')
.then(($codeBlocks) => {
// Trigger a reload
cy.reload()
// Give the runtime a chance to update/fail
.wait(500)
.get('.container pre code')
.should('have.length', $codeBlocks.length);
});
});
});
2 changes: 0 additions & 2 deletions scripts/apidoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ async function build(): Promise<void> {
<!-- This file is automatically generated. -->
<!-- Run '${scriptCommand}' to update -->
[[toc]]
::: v-pre
${toBlock(module.comment)}
Expand Down

0 comments on commit c932942

Please sign in to comment.