Giter Club home page Giter Club logo

documentation's Introduction

documentation

This project is intended to demonstrate the standard python project work-flow that is being followed at Computational Mechanics lab. By presenting the basic folder structure, this project focuses of documentation of the project and source code. These documentations makes a coding packages easy accessible and collaborative. Sphinx documentation tool is used to generate web version of the project.

To demonstrate the entire workflow, this projects considered simple maths.py file containing two classes that stores two numbers and performs addition, subtraction, multiplication, and division operations on them. The presented python code is containing properly formatted docstrings, which are mandatory for better documentations.

Before starting, look a few open source projects documentation that generated using Sphinx and familiarize yourself with what we are going to finally make.

Getting Started & Prerequisites

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

To follow along with the examples, you need to download and install below packages into your system.

Note: If have installed updated versions of below packages, please ignore the following steps.

  • Anaconda, A python distributor.
  • GitHub, A code management tool between local remote repositories.
  • Sublime, A code editing tool.
  • Mark Text, A markdown editor.

Anaconda Installation

After downloading the Anaconda, follow Anaconda Install instruction based on your system configuration.

Important: While installing the anaconda, make sure below boxes are checked.

Anaconda

Sphinx Installation

Open command prompt as administrator and use below command to install sphinx in your machine.

pip install -U sphinx

Note: If you are not able to execute above command through command prompt, open anaconda prompt as administrator to execute the commands.

sphinx-build --version Use this command to check sphinx version.

Sphinx offers flexibility in changing the webpage format. read_docs is the most popular theme. In order to install it use this command

pip install sphinx_rtd_theme

So far, we installed all the required modules that necessary to develop documentation. Please refer to _doc/README.md for documentation process using Sphinx.

GitHub

After downloading the GitHub desktop into your system, install it with default options and link your GitHub account to it. If you don not have GitHub account, create one on GitHub Publishing the online version of documentation is possible only through version control systems like GitHub. Please acquire basic working knowledge of git.

Sublime

Sublime is one of the light weight text/code editors. Install it with default options.

Mark Text

Mark down is a text formatting language, which is being widely in online articles. Mark Text is a mark down editor. This renders the text beautifully according to corresponding markdown format while typing it. Install it with default options.

Note:

After installing all the prerequisite tools, visit _doc/README.md for project documentation instructions.

Folder Structure

.
├── _data
├── _demo
├── _doc
├── _docker
├── _flats
├── _src
├── _scripts
├── _test
└── setup.py

An overview of what each of these does:

File/Directory Description
_data This directory contains the data that will be used for test scripts. These will be mesh files created in gmsh
_demo This directory will contain the demos supplied with the package
_doc This directory will contain the documentation for the package. This will be automatically generated from python files
_docker This directory will contain the DockerFile to build the docker image for this project
_flats This directory will contain the flat programs based on which modules will be developed
_src `This is the main directory for the source code of the package
_scripts This directory will contain scripts to generate documentation
_test This directory will contain the unit tests
setup.py This file will help to install the package with pip

Authors

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.