Giter VIP home page Giter VIP logo

docs-1's Introduction

Elekto Documentation

Welcome to the source file repository for our documentation on elekto.io.

Introduction

The Elekto documenation website is built with hugo and currently uses docsy as its theme.

Run website locally

Clone this repo (or your fork) and its submodules by using --recurse-submodules option, run:

git clone --recurse-submodules https://github.com/elekto-io/docs.git

If you accidentally cloned this repository without --recurse-submodules flag, you can do the following to clone the submodules:

cd docs
git submodule init
git submodule update
cd themes/docsy
git submodule init
git submodule update

[Optional] If you want to write CSS/SCSS, you need to install postcss-cli and autoprefixer, run an npm install to install the dependencies from package.json.

Finally, use hugo commands to start building up the site, run the following

# Start the server with live-reloading and with drafts
hugo -D server

# Start the server with live-reloading and without drafts
hugo server

Running a container locally

You can run this website inside a Docker container, the container runs with a volume bound to the docs folder. This approach doesn't require you to install any dependencies other than Docker.

Build the docker image

docker build -f dev.Dockerfile -t elekto-docs:latest .  

Run the built image

docker run --publish 1313:1313 --detach --mount src="$(pwd)",target=/home/docsy/app,type=bind elekto-docs:latest 

Open your web browser and type http://localhost:1313 in your navigation bar, This opens a local instance of the elekto documentation's homepage. You can now make changes to the docsy example and those changes will immediately show up in your browser after you save.

To stop the container, first identify the container ID with:

docker container ls

Take note of the hexadecimal string below the CONTAINER ID column, then stop the container:

docker stop [container_id]

To delete the container run:

docker container rm [container_id]

Deploy you changes

While the above section describes how the content is built locally, https://elekto.io/ is built and served by github-pages on github.

Save your local changes by commiting them and then use the deploy.sh script to do the deployment.

./deploy.sh

Contributing

We're excited that you're interested in contributing to the Elekto documentation! Check out the resources below to get started.

Checkout, How to Contribute for getting started on how to contribute and understanding the outlines the roles for Docs contributors.

Getting Help

The elekto project is maintained by Manish Sahani and Josh Berkus, Reach out to us one way or another.

Support

Your help and feedback is always welcome!

If you find an issue let us know, either by clicking the Create Issue on any of the website pages, or by directly opening an issue here in the repo.

docs-1's People

Contributors

jberkus avatar kalkayan 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.