Skip to content

Commit

Permalink
chore(bindings/python): improve ASF branding (#3850)
Browse files Browse the repository at this point in the history
* chore(bindings/python): improve ASF branding

Signed-off-by: tison <[email protected]>

* ci: use the template

Signed-off-by: tison <[email protected]>

* license header

Signed-off-by: tison <[email protected]>

---------

Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Dec 29, 2023
1 parent 8c229d1 commit f2559fe
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Build Docs
working-directory: bindings/python
run: pdoc --output-dir ./docs opendal
run: pdoc -t ./template --output-dir ./docs opendal

- name: Upload docs
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ Build API docs:

```shell
maturin develop -E docs
pdoc opendal
pdoc -t ./template opendal
```
34 changes: 34 additions & 0 deletions bindings/python/template/module.html.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{#
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
#}

{% extends "default/module.html.jinja2" %}

{% block nav_title %}
<h1>Apache OpenDAL™</h1>
{% endblock %}

{% block module_contents %}
{{ super() }}
<footer>
Copyright © 2022-<script>document.write(new Date().getFullYear())</script>,
The Apache Software Foundation Apache OpenDAL, OpenDAL, Apache, Apache Incubator, the Apache feather,
the Apache Incubator logo and the Apache OpenDAL project logo are either registered trademarks or
trademarks of the Apache Software Foundation.
</footer>
{% endblock %}

0 comments on commit f2559fe

Please sign in to comment.