Coder Social home page Coder Social logo

ottpeter / bee-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethersphere/bee-docs

0.0 0.0 0.0 129.44 MB

Documentation for the Swarm Bee Client. View at docs.ethswarm.org, contributions welcome!

Home Page: https://docs.ethswarm.org

JavaScript 60.93% CSS 37.02% Nix 2.05%

bee-docs's Introduction

Bee Documentation Website

Documentation for the Swarm Bee Client. View at docs.ethswarm.org.

Contributing

Pull Requests are welcome, but please read our CODING guide!

Node Version

You must use node 18 or above. We recommend nvm.

Installation

After the initial cloning of the repo you need to run:

npm ci

to download the exact revisions of the dependencies captured in package-lock.json.

If the dependencies are updated in package.json, or if you wish to test with the latest revisions of the dependencies, then you should run:

npm install

and then consider pushing the updated package-lock.json to the repository if everything works fine.

Local Development

npm start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Note about lunr search plugin

The lunr search plugin relies on manual swizzling, which ejects the SearchBar component from the theme to allow for customization. Upgrading the Docusaurus theme WILL NOT upgrade swizzled components. This means upgrading the theme could break the search bare. Therefore whenever you upgrade the theme, make sure to delete the old swizzleed SearchBar component at src/theme/SearchBar and swizzle it again using this command:

npm run swizzle docusaurus-lunr-search SearchBar -- --eject --danger

See the documentation for the above command and the plugin at its github repo here.

Bumping Version

Don't forget to find and replace the version number for the whole of the docs folder.

How to generate / include the API reference html

NOTE: when this is done, the docs will have to be rebuilt.

  1. Get all the OpenAPI YAML source files from the openapi folder of bee repo.
  2. Install Redocly.
  npm i -g @redocly/cli@latest
  1. Generate the index.html file for API docs:
   redocly build-docs Swarm.yaml --theme.openapi.expandDefaultServerVariables=true --disableGoogleFont -o static/api/index.html
  1. Generate the index.html file for debug API docs:
  redocly build-docs SwarmDebug.yaml --theme.openapi.expandDefaultServerVariables=true --disableGoogleFont -o static/debug-api/index.html
  1. Rebuild and redeploy docs.

bee-docs's People

Contributors

noahmaizels avatar significance avatar crtahlin avatar eknir avatar attila-lendvai avatar vandot avatar omahs avatar notanatol avatar centerorbit avatar istae avatar r0qs avatar dependabot[bot] avatar agazso avatar ldeffenb avatar nagydani avatar him2him2 avatar catalyticenzyme avatar borutswarm avatar nessdan avatar kristianpaul avatar anatollupacescu avatar auhau avatar kotarou3 avatar moremorefun avatar mfw78 avatar giraffekey avatar acud avatar vojtechsimetka avatar zelig avatar srivatsanhari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.