Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd1ecdd

Browse files
nejchJohnVillalovos
authored andcommitted
docs: enable gitter chat directly in docs
1 parent85a734f commitbd1ecdd

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

‎README.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,14 @@ https://github.com/python-gitlab/python-gitlab/issues.
9898
Gitter Community Chat
9999
---------------------
100100

101-
There is a `gitter<https://gitter.im/python-gitlab/Lobby>`_ community chat
102-
available at https://gitter.im/python-gitlab/Lobby
101+
We have a `gitter<https://gitter.im/python-gitlab/Lobby>`_ community chat
102+
available at https://gitter.im/python-gitlab/Lobby, which you can also
103+
directly access via the Open Chat button below.
104+
105+
If you have a simple question, the community might be able to help already,
106+
without you opening an issue. If you regularly use python-gitlab, we also
107+
encourage you to join and participate. You might discover new ideas and
108+
use cases yourself!
103109

104110
Documentation
105111
-------------

‎docs/_static/js/gitter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
((window.gitter={}).chat={}).options={
2+
room:'python-gitlab/Lobby'
3+
};

‎docs/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,15 @@
145145
# Add any paths that contain custom static files (such as style sheets) here,
146146
# relative to this directory. They are copied after the builtin static files,
147147
# so a file named "default.css" will overwrite the builtin "default.css".
148-
# html_static_path = ['_static']
148+
html_static_path= ["_static"]
149+
150+
html_js_files= [
151+
"js/gitter.js",
152+
(
153+
"https://sidecar.gitter.im/dist/sidecar.v1.js",
154+
{"async":"async","defer":"defer"},
155+
),
156+
]
149157

150158
# Add any extra paths that contain custom files (such as robots.txt or
151159
# .htaccess) here, relative to this directory. These files are copied

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp