mirror of https://gitee.com/bigwinds/arangodb
Some fixes for folding
This commit is contained in:
parent
3556868659
commit
86cce6f19f
|
@ -18,6 +18,6 @@ build-books: md-files
|
|||
build-book:
|
||||
@test -d books/$(NAME) || mkdir books/$(NAME)
|
||||
cd $(NAME) && gitbook build -o ../books/$(NAME)
|
||||
cp Users/arangodb_logo2.png books/Users/
|
||||
cp Users/Arangodb_Logo.png books/Users/
|
||||
@for file in $(basename $(MD_FILES)); do echo "remove $${file}.md";rm $${file}.md;done
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
|
@ -23,7 +23,13 @@ existing collection named "users" on the server.
|
|||
Let's further assume the import at hand is encoded in JSON. We'll be using these
|
||||
example user records to import:
|
||||
|
||||
@verbinclude arangoimp-data-json
|
||||
```
|
||||
{ "name" : { "first" : "John", "last" : "Connor" }, "active" : true, "age" : 25, "likes" : [ "swimming"] }
|
||||
{ "name" : { "first" : "Jim", "last" : "O'Brady" }, "age" : 19, "likes" : [ "hiking", "singing" ] }
|
||||
{ "name" : { "first" : "Lisa", "last" : "Jones" }, "dob" : "1981-04-09", "likes" : [ "running" ] }
|
||||
```
|
||||
|
||||
<!--@verbinclude arangoimp-data-json-->
|
||||
|
||||
To import these records, all you need to do is to put them into a file (with one
|
||||
line for each record to import) and run the following command:
|
||||
|
|
|
@ -22,6 +22,7 @@ Truncates a collection, removing all documents but keeping all its indexes.
|
|||
|
||||
Truncates a collection:
|
||||
|
||||
```
|
||||
arango> col = db.examples;
|
||||
[ArangoCollection 91022, "examples" (status new born)]
|
||||
arango> col.save({ "Hello" : "World" });
|
||||
|
@ -31,6 +32,7 @@ arango> col.count();
|
|||
arango> col.truncate();
|
||||
arango> col.count();
|
||||
0
|
||||
```
|
||||
|
||||
`collection.properties()`
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 26 KiB |
|
@ -24,7 +24,7 @@
|
|||
<!-- Title -->
|
||||
<h1>
|
||||
<i class="fa fa-spinner fa-spin"></i>
|
||||
<a href="https://www.arangodb.org" target="_blank"><img src="../arangodb_logo2.png" style= width="222" height="35" border="0" alt="ArangoDB" style="position:fixed"></a>
|
||||
<div style="position:relative; bottom:50px; left:110px; font-size:22pt">2.1.0</div>
|
||||
<a href="https://www.arangodb.org" > <img src="../Arangodb_Logo.png" alt="ArangoDB" border="0" style="position:relative"></a>
|
||||
<div style="position:relative; bottom:45px; left:90px; font-size:12pt">2.1.0</div>
|
||||
</h1>
|
||||
</div>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
{% if options.links.issues !== false && (options.links.issues || githubId) %}
|
||||
{% set _divider = true %}
|
||||
<li>
|
||||
<a href="{{ options.links.issues|default(githubHost+githubId+"/issues") }}" target="blank"class="issues-link">Need more help?</a>
|
||||
<a href="{{ options.links.issues|default(githubHost+githubId+"/issues") }}" target="blank"class="issues-link">Have any questions?</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if _divider %}
|
||||
|
@ -53,9 +53,9 @@
|
|||
x = x[x.length - 2] + '/' + x[x.length - 1];
|
||||
jQuery('a',this).each(function(){
|
||||
var str = jQuery(this).attr('href');
|
||||
if(str.search(x) != -1){
|
||||
console.log(x);
|
||||
console.log(str);
|
||||
if(str.search(x) != -1){
|
||||
console.log(x);
|
||||
console.log(str);
|
||||
flag = false;
|
||||
}
|
||||
});
|
||||
|
@ -64,7 +64,7 @@
|
|||
}
|
||||
});
|
||||
jQuery(".summary>li").on("click",function(){
|
||||
jQuery(".summary>li>ul").hide();
|
||||
jQuery(".summary>li").show();
|
||||
jQuery("ul",this).slideDown();
|
||||
});
|
||||
</script>
|
|
@ -52,4 +52,9 @@
|
|||
{{ htmlSnippet("body:end")|default("") }}
|
||||
</body>
|
||||
{{ htmlSnippet("html:end")|default("") }}
|
||||
<script type="text/javascript">
|
||||
jQuery(".summary>li").each(function(){
|
||||
jQuery('ul',this).hide();
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue