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

fix: removing toc to fix the docs html #341

Merged
merged 3 commits into from
Jan 30, 2022
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
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');
});
Shinigami92 marked this conversation as resolved.
Show resolved Hide resolved

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) => {
ST-DDT marked this conversation as resolved.
Show resolved Hide resolved
// Trigger a reload
cy.reload()
// Give the runtime a chance to update/fail
.wait(500)
Shinigami92 marked this conversation as resolved.
Show resolved Hide resolved
.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