Code Monkey home page Code Monkey logo

corda-docs's Introduction

Corda Developer Documentation

Build Status Build Status

There are detailed instructions in the usage docs.

Please read them!

You will need:

  • hugo (a single binary on all platforms)
    • Use the latest version, otherwise at least v0.65
  • a text editor: we strongly recommend Visual Studio Code.

Quick Start

  • Download hugo
  • clone this repo
  • cd into the root of the repo and run hugo serve
  • edit the markdown in content

Edit The Current Web Page

If you have installed VSCode, you can run hugo in a mode that allows you to open markdown content from the browser.

On Mac or Linux, start hugo using:

make local-serve-and-edit

In Powershell (Windows ...and Linux!):

serve_and_edit.ps1

and you will see:

edit markdown

Installing and Running Hugo

Docker

If you are on Linux or MacOS you can also build using Docker images (WSL2 not supported yet), type make help to see the options

Windows

Install hugo locally and ensure it is on your path (see tbe Native section below).

It is also available via choco.

Mac and Linux

Hugo is available via brew, and most Linux package installers (apt, pacman, and so on).

Binary Download

Go to here https://github.com/gohugoio/hugo/releases

Install one of the extended versions.

CI/Jenkins

The publish target does everything and is intended to be run in the CI system (Jenkins), but can be run locally. It:

  • builds a Docker image with hugo
  • runs the hugo docker image to produce the site in /public
  • builds a Docker image of nginx containing the content of /public
  • attempts to docker push to whatever Docker registry *you are currently logged in to.

In principle, docker push should fail on your desktop at the final stage.

As a developer your just want to run:

make prod-docker-serve

to run and test the nginx image on your desktop.

Docker build configuration

It is possible to override the baseURL of the project at build time.

One way to do this is to use the configuration files, e.g.

make HUGO_ARGS="--config config.toml,config.dev.toml" prod-docker-serve

which makes the nginx image and starts it on port 8888

The alternative is to run:

make DOCKER_BUILD_ARGS="-e HUGO_BASEURL=\"http://localhost:8888\"" prod-docker-serve

If you need to change many parameters in Hugo's configuration, then prefer to use the configuration file override.

corda-docs's People

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.