Skip to content

Commit

Permalink
fix: removing toc to fix html for codegen'd docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaSachs committed Jan 29, 2022
1 parent a717637 commit 584b281
Show file tree
Hide file tree
Showing 4 changed files with 19 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
20 changes: 15 additions & 5 deletions cypress/e2e/smoke.cy.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
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', () => {
cy.get('@firstSectionLink')
.click()
.get('.container pre code')
.then(($codeBlocks) => {
cy.reload()
.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 584b281

Please sign in to comment.