You've already forked code_examples_server
mirror of
https://github.com/AdaCore/code_examples_server.git
synced 2026-02-12 12:45:18 -08:00
updating documentation to include references to new example filling method.
This commit is contained in:
@@ -30,6 +30,11 @@ To enter some examples in the database, do this:
|
||||
./manage.py fill_examples --dir=resources/example/hello_world
|
||||
```
|
||||
|
||||
To enter many examples in the database where the examples are listed in a yaml file, do this:
|
||||
```sh
|
||||
./manage.py fill_examples --conf=resources/test_conf.yaml
|
||||
```
|
||||
|
||||
To enter some books in the database, do this:
|
||||
```sh
|
||||
./manage.py fill_books --dir=resources/books/example
|
||||
|
||||
@@ -38,7 +38,7 @@ curl -H 'Accept: application/json; indent=4' http://127.0.0.1:8000/examples/ --h
|
||||
# Import Yannick's examples #
|
||||
#############################
|
||||
|
||||
# TODO: add a facility to do this
|
||||
# TODO: add a facility to do this (see better method below)
|
||||
|
||||
# Setup:
|
||||
cd resources ; git clone https://github.com/AdaCore/Compile_And_Prove_Demo.git
|
||||
@@ -48,6 +48,13 @@ cd resources ; git clone https://github.com/AdaCore/Compile_And_Prove_Demo.git
|
||||
list="hello_world absolute_value bitwise_swap saturate_angle sensor_average strings communications landing_procedure"
|
||||
for a in $list; do ./manage.py fill_examples --dir=resources/Compile_And_Prove_Demo/examples/$a ; done
|
||||
|
||||
################################################
|
||||
# Import Yannick's examples: The Better Method #
|
||||
################################################
|
||||
|
||||
./manage.py fill_examples --remove_all
|
||||
./manage.py fill_exmaples --conf=resources/test_conf.yaml
|
||||
|
||||
################
|
||||
# Import books #
|
||||
################
|
||||
|
||||
Reference in New Issue
Block a user