Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile the documentation #4

Closed
VincentCasse opened this issue Mar 26, 2018 · 6 comments
Closed

How to compile the documentation #4

VincentCasse opened this issue Mar 26, 2018 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@VincentCasse
Copy link
Member

If I want to write new tutorials from github, I can't test if the rendering is good because all configuration of your grav is missing and documentation to help the compilation are missing :(

Can you add

  • The doc of the doc
  • Your customs code to compile specific guideslines?
@gclem
Copy link
Contributor

gclem commented Mar 26, 2018

We’ll open source our full content management platform, with rendering engine this week.

@gclem gclem added the question Further information is requested label Mar 26, 2018
@gclem gclem self-assigned this Mar 26, 2018
@VincentCasse
Copy link
Member Author

<3

@Fracasx
Copy link
Contributor

Fracasx commented Mar 27, 2018

Hi Vincent, as confirmed by Gio we'll add all info in the next days, we just put the docs online and will add docs (doc of the docs and specific tech docs) in the next days / weeks.

@gclem
Copy link
Contributor

gclem commented Mar 30, 2018

Here you can find our Pelican package : https://github.com/ovh/docs-rendering

I need to complete the Readme & some contribution rules.
ATM it's usable.

Next week, we'll push our Docker image to speed up local staging.

Some helpers :

Dockerfile sample :

FROM python:3.5

ENV SRV_DIR=//srv
ENV WORKING_DIR=//srv/pelican
ENV PORT=8000

ADD ./files $SRV_DIR
WORKDIR $WORKING_DIR
RUN mkdir output pages cache
VOLUME ["$WORKING_DIR/pages/"]

RUN pip install -r requirements.txt

EXPOSE $PORT

RUN chmod +x $SRV_DIR/developer_server.sh
CMD ./$SRV_DIR/develop_server.sh restart $PORT

Start.sh

#!/usr/bin/env bash
##
# This section should match your Makefile
##
PY=${PY:-python}
PELICAN=${PELICAN:-pelican}
PELICANOPTS=

BASEDIR=$(pwd)
INPUTDIR=$BASEDIR/pages
OUTPUTDIR=$BASEDIR/output
CONFFILE=$BASEDIR/pelicanconf.py

###
# Don't change stuff below here unless you are sure
###

SRV_PID=$BASEDIR/srv.pid
PELICAN_PID=$BASEDIR/pelican.pid

function usage(){
  echo "usage: $0 (stop) (start) (restart) [port]"
  echo "This starts Pelican in debug and reload mode and then launches"
  echo "an HTTP server to help site development. It doesn't read"
  echo "your Pelican settings, so if you edit any paths in your Makefile"
  echo "you will need to edit your settings as well."
  exit 3
}

function alive() {
  kill -0 $1 >/dev/null 2>&1
}

function shut_down(){
  PID=$(cat $SRV_PID)
  if [[ $? -eq 0 ]]; then
    if alive $PID; then
      echo "Stopping HTTP server"
      kill $PID
    else
      echo "Stale PID, deleting"
    fi
    rm $SRV_PID
  else
    echo "HTTP server PIDFile not found"
  fi

  PID=$(cat $PELICAN_PID)
  if [[ $? -eq 0 ]]; then
    if alive $PID; then
      echo "Killing Pelican"
      kill $PID
    else
      echo "Stale PID, deleting"
    fi
    rm $PELICAN_PID
  else
    echo "Pelican PIDFile not found"
  fi
}

function start_up(){
  local port=$1
  echo "Starting up Pelican and HTTP server"
  shift
  cd $BASEDIR;
  $PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS &
  pelican_pid=$!
  echo $pelican_pid > $PELICAN_PID
  if ! alive $pelican_pid ; then
    echo "Pelican didn't start. Is the Pelican package installed?"
    return 1
  fi
  cd $OUTPUTDIR;
  $PY -m pelican.server $port
  srv_pid=$!
  echo $srv_pid > $SRV_PID
  if ! alive $srv_pid ; then
    echo "The HTTP server didn't start. Is there another service using port" $port "?"
    return 1
  fi
  sleep 1
  echo 'Exiting Pelican and HTTP server processes.'
}

###
#  MAIN
###
[[ ($# -eq 0) || ($# -gt 2) ]] && usage
port=''
[[ $# -eq 2 ]] && port=$2

if [[ $1 == "stop" ]]; then
  shut_down
elif [[ $1 == "restart" ]]; then
  shut_down
  start_up $port
elif [[ $1 == "start" ]]; then
  if ! start_up $port; then
    shut_down
  fi
else
  usage

@VincentCasse
Copy link
Member Author

<3 I will test it the next days.

@gclem
Copy link
Contributor

gclem commented Apr 3, 2018

Voila :)

Official devenv : https://github.com/ovh/docs-developer-env

@gclem gclem closed this as completed Apr 3, 2018
vivingo pushed a commit to vivingo/docs that referenced this issue Oct 9, 2018
…from dev/vngo/add-claires-doc to master

* commit '3197070c67b89fb3bd2750a01192a283d2b94faa': (130 commits)
  Fix typo
  Add Claire's doc
  NL Update Modify ovhconfig file Web Hosting
  FR Add Personalize DNS server for Domain Name
  NL add Add an hourly resource on Private Cloud
  IT add Configure multiple dedicated servers in a vRack on Dedicated Servers
  FR Add Manage Plug & Phone on VoIP
  PT Fix one incorrect link in Configuration and ovhconfig guides Web Hosting
  FR Fix remove an old link on Hack guide Web Hosting
  FR Fix old gear tag on Use FileZilla Web Hosting
  GB update centos unattended installation for vsphere in Private Cloud
  PL update Changing the hostname of a public cloud instance on Public Cloud
  PL update Updating the kernel on a dedicated server on Dedicated Servers
  FR Fix typo on Change PHP version Web Hosting
  LT Add Configuring the ovhconfig file of your Web Hosting plan
  IE Add Configuring the ovhconfig file of your Web Hosting plan
  GB Add Configuring the ovhconfig file of your Web Hosting plan
  GB IE LT Update some typos on Importing a backup into a Web Hosting plan database
  NL Update Typo on Change Web Hosting configuration
  PT Add Change Web Hosting configuration
  ...
OVH-Team-Guides pushed a commit that referenced this issue Jul 3, 2019
Adjust centos section with permanent routes/rules
OVH-Team-Guides pushed a commit that referenced this issue Jun 29, 2020
* Convert to ES US

Adjusted links, Dates, OVH to OVHcloud

* Updates

Fixed community link in phishing guide.
Added 2 screenshots to replaced ones in 2fa guide

* Convert for CA-EN guides

Updated guides and Screenshots

* Create remove_auth.png

* Update guide.en-ca.md

fix link

* Update guide.en-ca.md

fixed typo
tcpdumpfbacke pushed a commit that referenced this issue Jul 16, 2020
OVH-Team-Guides pushed a commit that referenced this issue Sep 22, 2020
IP-LB additions and CephAAS updates 2
OVH-Team-Guides pushed a commit that referenced this issue Dec 17, 2020
Merge in OVHDOCS/docs from netapp-guides-initial to develop-staging

Squashed commit of the following:

commit 6c85bf90373c0d4f70b8a3ff30b56a28a330b5b7
Merge: 93953d91a 915a0e5
Author: Yoann Cosse <ycosse@LAPTOP1144573.local>
Date:   Thu Dec 10 17:49:49 2020 +0100

    Fixing conflicts

commit 93953d91a63b40175dc0e69161c09e71d6e360dc
Author: Yoann Cosse <yoann.cosse@ovhcloud.com>
Date:   Tue Nov 10 17:07:15 2020 +0100

    Pull request #4: Updated NetApp guides, both FR and EN versions:

    Merge in OVHDOCS/docs from dev/dkobtsev/netAppGuides to netapp-guides-initial

    Squashed commit of the following:

    commit 76cd9c657319af3d242b982c7e8b1073f75b4673
    Author: Daria Kobtseva <daria.kobtseva@corp.ovh.com>
    Date:   Fri Nov 6 16:28:12 2020 +0000

        Updated NetApp guides, both FR and EN versions:
          - API Quickstart
          - Managing Shares
          - Managing Share ACLs
          - Managign Share Snapshots

commit 0e2f7235764da21b6db7c39cbb7f2d8f6c86bf15
Author: Yoann Cosse <ycosse@LAPTOP1144573.local>
Date:   Thu Nov 5 17:39:25 2020 +0100

    FR Fixing slug in shares management for NetApp

commit 90dee3fb8aa8b16b8f596801bc356dea496fc3a4
Author: Yoann Cosse <ycosse@LAPTOP1144573.local>
Date:   Thu Nov 5 17:27:54 2020 +0100

    Updating slugs for NetApp shares and ACL

commit 893a4ca8f08fe6fce16dd7dc730879aa06176a67
Author: Yoann Cosse <ycosse@LAPTOP1144573.local>
Date:   Thu Nov 5 16:22:40 2020 +0100

    updating netapp initial guides

commit 466fad79f1519655715a1267cc12c0b6802f8dee
Author: Brendan Kergoat <bkergoat@LAPTOP1144576-2.local>
Date:   Thu Nov 5 10:45:33 2020 +0100

    BrenKt-trans-fr-netapp

commit e7c8a0bb1ce39fd5bc76034351193c8577da8594
Author: tcpdumpfbacke <tcpdumpfbacke@ohv.ovh>
Date:   Mon Nov 2 13:20:39 2020 +0100

    re-add guide

commit 2ab6a82fb22bb163286e6c831b6bdf7e8f30b3ee
Merge: afc50605a 82caebdb9
Author: tcpdumpfbacke <tcpdumpfbacke@ohv.ovh>
Date:   Mon Nov 2 12:51:19 2020 +0100

    Merge branch 'netapp-guides-initial' of https://stash.ovh.net/scm/ovhdocs/docs into netapp-guides-initial

commit afc50605ab85600668c751b2b8437e66104e8e85
Merge: 9b8733ea9 7f9d250
Author: tcpdumpfbacke <tcpdumpfbacke@ohv.ovh>
Date:   Mon Nov 2 12:22:53 2020 +0100

    Merge branch 'develop' of https://stash.ovh.net/scm/ovhdocs/docs into netapp-guides-initial

commit 82caebdb91011aa06a016cce44ee3817b6140130
Author: Yoann Cosse <ycosse@LAPTOP1144573.local>
Date:   Fri Oct 30 18:37:51 2020 +0100

    FR create Netapp  Manage Shares for Cloud Storage

commit 9b8733ea9bdca58248fc1ee09002815a46101f84
Author: tcpdumpfbacke <tcpdumpfbacke@ohv.ovh>
Date:   Fri Oct 30 16:58:51 2020 +0100

    EN-GB update NetApp Cloud Volumes initial guides for Cloud - Storage

commit 0ae91c373dcdbe4123e0a042c5514d97b3620df7
Author: tcpdumpfbacke <tcpdumpfbacke@ohv.ovh>
Date:   Thu Oct 29 16:10:34 2020 +0100

    EN-GB update NetApp Cloud Volumes initial guides for Cloud - Storage

commit 0f6a49c4fb2fd94a41e572f966238ffe984f6e08
Author: tcpdumpfbacke <tcpdumpfbacke@ohv.ovh>
Date:   Thu Oct 29 10:02:46 2020 +0100

    EN-GB creation NetApp Cloud Volumes initial guides for Cloud - Storage
tcpdumpfbacke pushed a commit that referenced this issue May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants