Where is CompLibrary?
See original GitHub issueI am trying to follow the Docusaurus tutorial. The generated application is describe as having the following file structure, which is what is actually generated when I run the init command:
βββ Dockerfile
βββ docker-compose.yml
βββ docs
β βββ doc1.md
β βββ doc2.md
β βββ doc3.md
β βββ exampledoc4.md
β βββ exampledoc5.md
βββ website
βββ README.md
βββ blog
β βββ 2016-03-11-blog-post.md
β βββ 2017-04-10-blog-post-two.md
β βββ 2017-09-25-testing-rss.md
β βββ 2017-09-26-adding-rss.md
β βββ 2017-10-24-new-version-1.0.0.md
βββ core
β βββ Footer.js
βββ package.json
βββ pages
β βββ en
β βββ help.js
β βββ index.js
β βββ users.js
βββ sidebars.json
βββ siteConfig.js
βββ static
β βββ css
β β βββ custom.css
β βββ img
β βββ docusaurus.svg
β βββ favicon
β β βββ favicon.ico
β βββ favicon.png
β βββ oss_logo.png
βββ yarn.lock
But in the next step, we are provided with the following HelloWorld page code:
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;
function HelloWorld(props) {
return (
<div className="docMainWrapper wrapper">
<Container className="mainContainer documentContainer postContainer">
<h1>Hello World!</h1>
<p>This is my first page!</p>
</Container>
</div>
);
}
module.exports = HelloWorld;
There is no CompLibrary.js in the /website/core/ folder. Am I missing something?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Create Pages - Docusaurus v1
The docs folder is in the root of your Docusaurus project, one level above website .
Read more >Salesforce Lightning Component Library
The Component Library is the Lightning components developer reference. Rapidly develop apps with our responsive, reusable building blocks.
Read more >Import 'sap.ui.comp' for using ValueHelpDialog control
Hello Experts, I'm trying to import the 'sap.ui.comp' library:
Read more >React event handler not executing on Docusaurus page
core/CompLibrary.js'); class SignUp extends React.Component { constructor(props) { super(props); this.state = {value: ''}; this.
Read more >Cant copy comp library songs to ipod touc⦠- Apple Community
Question: Q: Cant copy comp library songs to ipod touch. In library device menu can synch device though. Restored Ipod touch from back...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Nodejs require in docu v1 case will start from docusaurus own folder in node_modules/
Its kinda time consuming to explain, but short answer is above
I have many things to backport in the migration cli/doc, including a solution for the comp library migration.
In the meantime, you can copy the comps here and use them in place of the v1 components: https://github.com/facebook/jest/tree/v27.0.0-next.5/website/src/components/v1
For simple cases, you can use the new
<Interpolate>component instead of<MarkdownBlock>, as shipping a full MD parser client-side adds more weight to your site