summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/gl_objects/commits.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/gl_objects/commits.py b/docs/gl_objects/commits.py
index f7e73e5..88d0095 100644
--- a/docs/gl_objects/commits.py
+++ b/docs/gl_objects/commits.py
@@ -17,8 +17,15 @@ data = {
'actions': [
{
'action': 'create',
- 'file_path': 'blah',
- 'content': 'blah'
+ 'file_path': 'README.rst',
+ 'content': open('path/to/file.rst').read(),
+ },
+ {
+ # Binary files need to be base64 encoded
+ 'action': 'create',
+ 'file_path': 'logo.png',
+ 'content': base64.b64encode(open('logo.png').read()),
+ 'encoding': 'base64',
}
]
}