manthonyaiello / learn

Sources for learn.adacore.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

learn.adacore.com

Sources for AdaCore's learn.adacore.com website


Typescript Test Suite Sphinx Plugin Tests Sphinx Content Tests

Requirements

This project requires Vagrant and VirtualBox

Getting started

To setup for development run:

$ vagrant up

This will spin up two vms:

web: Is the the build system for the frontend web content. This includes the webpack build system and sphinx build.

server: Is the backend server with the widget API.

To build and start the development server for the frontend, run:

$ vagrant ssh web

# The following commands will be run inside the vm

$ source /vagrant/venv/bin/activate
$ cd /vagrant/frontend
$ yarn run dev

This will run webpack on the typescript and scss, then sphinx for the rst using make local which will point the widgets at 127.0.0.1:8000

You can then point your browser on your host to 127.0.0.1:8080 to see the learn website being served from vagrant.

To build and start the development server for the backend, run:

$ vagrant ssh server

# The following commands will be run inside the vm

$ cd /vagrant
$ source venv/bin/activate
$ ./dev_server.sh

You can use ctrl-c to quit the bash script which will kill both the flask and celery processes.

About

Sources for learn.adacore.com

License:Creative Commons Attribution 4.0 International


Languages

Language:Ada 87.2%Language:Python 4.3%Language:SCSS 4.1%Language:TypeScript 3.3%Language:HTML 0.7%Language:Makefile 0.2%Language:JavaScript 0.2%Language:Dockerfile 0.1%Language:C 0.0%Language:Shell 0.0%