GithubHelp home page GithubHelp logo

mkdocsonibmi's Introduction

Setup MkDocs on IBMi

Practical Guide

Table of Contents

#PROMPT_COMMAND='__posh_git_ps1 "${VIRTUAL_ENV:+(`basename $VIRTUAL_ENV`)}\[\e[32m\]\u\[\e[0m\]@\h:\[\e[33m\]\w\[\e[0m\] " "\\\$ ";'$PROMPT_COMMANDexport PATH=/QOpenSys/pkgs/bin:/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin

Pre-Requisites

  • Install gcc*, python and it's related packages using the below command

    yum install gcc* python3-devel python3-pip -y

Install MkDocs in a python virtual environment

  • It is better to install MkDocs inside a python virtual environment. Why? Because MkDocs needed some extra python packages to run and we don't want to install them on a system level. For that purpose we'll create our own Python Sandbox a.k.a virtual environment to happily install and run MkDocs without any issues.

  • Create a new directory called mkdocs in your root folder (If you don't have access to root folder, then remove the '/' so that the directory will be created in your home folder itself) and navigate into it.

    mkdir /mkdocs && cd /mkdocs

  • Enter below command to create a python virtual environment called mkpy in /mkdocs folder

    python -m venv --system-site-packages mkpy

  • Enter into the python virtual environment

    source mkpy/bin/activate

  • Upgrade the pip.

    pip3 install --upgrade pip

  • Install MkDocs via pip

    pip3 install mkdocs

  • Install Material theme (Optional)

    pip3 install mkdocs-material

  1. Installed gcc* via yum
  2. Installed python3-devel python3-pip
  3. Installed mkdocs via pip
  4. Installed material theme (via pip) and did customization Installation - Material for MkDocs (squidfunk.github.io) Pip3 install mkdocs-material
  5. Check the mkdocs.yml file
  6. ADDENVVAR ‘QIBM_MULTI_THREADED’ ‘Y’

cd /

mkdocs new docproject

cd /docproject && mkdocs serve --dev-addr=0.0.0.0:8556 source /docproject/python-modules/bin/activate nohup cd /docproject && nohup mkdocs serve --dev-addr=0.0.0.0:8555

source /home/RAVISANKAR/mydoc/pyfiles/bin/activate && cd /home/RAVISANKAR/mydoc/docproject &&

Start MkDocs

Configure your MkDocs website

Footnotes/References

mkdocsonibmi's People

Contributors

ravisankar-pio avatar oliyan 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.