How to use the docusaurus/lib/core/CompLibrary.Container function in docusaurus

To help you get started, we’ve selected a few docusaurus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github verdaccio / website / website / pages / en / versions.js View on Github external
/**
 * Copyright (c) 2017-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

const React = require('react');

const CompLibrary = require('docusaurus/lib/core/CompLibrary');

const Container = CompLibrary.Container;

const CWD = process.cwd();

const siteConfig = require(`${CWD}/siteConfig.js`);
const versions = require(`${CWD}/versions.json`);

function Versions(props) {
  const latestVersion = versions[0];
  const repoUrl = siteConfig.repoUrl;
  return (
    <div>
      
        <div>
          <header>
            <h1>{siteConfig.title} Versions</h1>
            <div id="codefund">''</div></header></div></div>

docusaurus

Easy to Maintain Open Source Documentation Websites

MIT
Latest version published 4 years ago

Package Health Score

72 / 100
Full package analysis