opensumi / gatsby-theme Goto Github PK
View Code? Open in Web Editor NEWThe Gatsby theme for OpenSumi documentation site.
License: Other
The Gatsby theme for OpenSumi documentation site.
License: Other
Environment:
Missing onError handler for invocation 'building-schema', error was 'Error: Type with name "Json" does not exists'. Stacktrace was 'Error: Type with name "Json" does not exists
at SchemaComposer.get (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/TypeStorage.ts:39:13)
at ThunkComposer._thunk (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/TypeMapper.ts:737:34)
at ThunkComposer.get ofType [as ofType] (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/ThunkComposer.ts:21:34)
at getTypeNode (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/utils/definitionNode.ts:253:28)
at /Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/utils/definitionNode.ts:314:20
at Array.map (<anonymous>)
at getFieldDefinitionNodes (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/utils/definitionNode.ts:312:6)
at getObjectTypeDefinitionNode (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/utils/definitionNode.ts:61:13)
at ObjectTypeComposer.getType (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/ObjectTypeComposer.ts:986:57)
at ObjectTypeComposer.getFieldType (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/node_modules/graphql-compose/src/ObjectTypeComposer.ts:607:42)
at getSimpleFieldConfig (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/src/schema/infer/add-inferred-fields.js:330:40)
at getFieldConfig (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/src/schema/infer/add-inferred-fields.js:152:19)
at forEach (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/src/schema/infer/add-inferred-fields.js:88:25)
at Array.forEach (<anonymous>)
at addInferredFieldsImpl (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/src/schema/infer/add-inferred-fields.js:72:28)
at addInferredFields (/Users/tangyenan/Projects/ASOC2022/opensumi/opensumi-gatsby-theme/node_modules/gatsby/src/schema/infer/add-inferred-fields.js:27:3)'
⠋ building schema
#3 虽然解决了左侧目录无法滚动的问题,但是存在一个当时我没发现的问题,100vh的高度会让最后一行的内容无法显示出来:
将高度调到92vh似乎恰到好处:
在上面我试了高度为92vh,效果不错,但这只是我估计的。我猜测这个高度的精确值是100减去导航栏的高度(如图所示)。所以也许能给出一个更精确的值,或者说甚至都不用hardcode为92vh,而是通过计算得到。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.