Giter Site home page Giter Site logo

lezzokafka / cronos-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crypto-org-chain/cronos-docs

0.0 1.0 0.0 72.97 MB

Docs for https://github.com/crypto-org-chain/ethermint

Home Page: https://github.com/crypto-org-chain/cronos-docs

License: Creative Commons Zero v1.0 Universal

Shell 100.00%

cronos-docs's Introduction


Cronos Logo


Cronos Testnet's Documentation

The documentation in this repository site is meant to provide specifications and implementation details that will be useful to third party developers or contributors to the main repository.

Getting Started

Prerequisites

You're going to need:

  • NPM
  • Oracle JDK (For generating the pdf, deployment needs this)

Getting Set Up

  1. Fork this repository on Github
  2. Clone your forked repository (not our original one) to your hard drive with git clone https://github.com/YOURUSERNAME/cronos-docs.git
  3. cd cronos-docs
  4. Initialize and start chain-docs.
npm install
npm run docs:dev

You can now see the docs at http://localhost:8080.

Adding new page to the doc

  1. Create a markdown file under /docs/getting-started/
  2. Open /docs/.vuepress/config.js
  3. Add the file name to sidebar and the ordering under vuepress-plugin-export in plugins
module.exports = {
  ...,

  themeConfig: {
    ...,

    sidebar: {
      '/getting-started/': [
        '',
        ...,
+        '[Add_Your_New_File_Name_Here]'
        ...
      ]
    }
  },
  ...,

  plugins: [
    ['vuepress-plugin-export',
    {
      sorter: function(a,b){
        var ordering = {
          'Home': 0,
          ...,
+         '[Add_Your_New_File_Name_Here]': [Add_The_Number_You_Want_The_Page_Be_Ordered]
          ...,
        };
        ...
      }
    }
    ]
  ]
}

Generating a PDF version of the site

Go to cronos-docs/docs, then run:

vuepress export

PDF styling config in /docs/.vuepress/config.js, you can refer to Puppeteer doc for the complete page API when generating PDF.

module.exports = {
  plugins: [
    ['vuepress-plugin-export',
    {
      page: {         // Puppeteer.page.pdf([options])
        format: 'A4',
        printBackground: true,
        margin: {
          top: 60,
          left: 20,
          right: 20,
          bottom: 60
        }
      },
      sorter: function(a,b){
        ...,
      }
    }
    ]
  ]
}

a PDF version of the site will be generated under the /docs path.

Deploying Chain-doc to Github Pages

  1. Make sure you're working on a fork in your own account, not our original repository: git remote show origin
  2. Commit your changes: git commit -a -m "YOUR MESSAGE"
  3. Push the changes to GitHub: git push
  4. Run ./deploy.sh

You should see your updates on http://yourusermame.github.io/chain-docs.

cronos-docs's People

Contributors

0x-kchau avatar aasierra avatar allthatjazzleo avatar aw126 avatar calvinaco avatar cdc-william avatar croyyds avatar crypto-matto avatar dependabot[bot] avatar francocro avatar ivnnv avatar jackliucrypto avatar julienrbrt avatar kether-c avatar landanhu avatar lezzokafka avatar mofhusseini avatar mr-kenikh avatar rarcif avatar shih-yu avatar tomtau avatar vincentysc avatar xinyucro avatar ysong42 avatar zkaizhi avatar

Watchers

 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.