Skip to content

Commit c1aaf9b

Browse files
committed
update to mkdocs from gitbook
1 parent 3b888be commit c1aaf9b

File tree

930 files changed

+28777
-257012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

930 files changed

+28777
-257012
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ examples/python/sdk
44
examples/python/google
55
docs/reference.md
66
pysdkdoc
7+
venv
78
_book
89
*.swp

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ images:
66
$(MAKE) -C docs/images
77

88
build: api images docs/reference.md
9-
gitbook build docs/ w
9+
bash -c "source venv/bin/activate && \
10+
mkdocs build"
1011

1112
serve: api images docs/reference.md
12-
gitbook serve docs/ w
13+
bash -c "source venv/bin/activate && \
14+
mkdocs serve"
1315

1416
api:
1517
ifndef DOCKER_PROTO

docs/README.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,30 @@ $ docker run --rm --name sdk -d -p 9100:9100 -p 9110:9110 openstorage/mock-sdk-s
1616
```
1717

1818
This container starts a tiny, in-memory OpenStorage SDK server able to be used
19-
for development. More information can be found in the [Tutorial](tutorial.html).
19+
for development. More information can be found in the [Tutorial](tutorial.md).
2020

2121
Now we can send requests from the command line. To send requests to the gRPC
2222
server, we will use [Polyglot 1.x.x](https://github.com/grpc-ecosystem/polyglot/releases)
2323
as the gRPC client. To send requests to the gRPC REST Gateway, we will be
2424
sending the same request as Polyglot, but using _curl_ instead:
2525

26-
{% codetabs name="gRPC", type="less" -%}
26+
**gRPC**:
27+
```bash
2728
$ wget https://github.com/grpc-ecosystem/polyglot/releases/download/v1.6.0/polyglot.jar
2829
$ echo {} | java -jar polyglot.jar \
2930
--command=call \
3031
--endpoint=localhost:9100 \
3132
--full_method=openstorage.api.OpenStorageCluster/InspectCurrent
32-
{%- language name="REST", type="less" -%}
33-
$ curl -X GET "http://localhost:9110/v1/clusters/inspectcurrent" \
34-
-H "accept: application/json" \
35-
-H "Content-Type: application/json" \
36-
-d "{}"
37-
{%- endcodetabs %}
33+
```
34+
35+
**REST**:
36+
```bash
37+
$ curl -X GET "http://localhost:9110/v1/clusters/inspectcurrent" \
38+
-H "accept: application/json" \
39+
-H "Content-Type: application/json" \
40+
-d "{}"
41+
```
42+
3843

3944
Results in:
4045

@@ -57,8 +62,8 @@ UI located:
5762

5863
Check out:
5964

60-
* [Architecture](arch.html)
61-
* [Installation](installation.html)
62-
* [Tutorials](tutorial.html)
65+
* [Architecture](arch.md)
66+
* [Installation](installation.md)
67+
* [Tutorials](tutorial.md)
6368

6469

docs/SUMMARY.md

-21
This file was deleted.

0 commit comments

Comments
 (0)