Skip to content

Commit

Permalink
add collapsible auth code
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Jan 17, 2024
1 parent dc8d9d6 commit 34b838e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/_exts/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def run(self):
CollapseNode(
"",
"show auth code",
nodes.literal_block("This is example", "This is example"),
nodes.literal_block(auth_str, auth_str, language="php")
),
nodes.literal_block(main_str, main_str, language="php")
Expand Down
3 changes: 3 additions & 0 deletions doc/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summary {
cursor: pointer;
}
7 changes: 7 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
# Output file base name for HTML help builder.
htmlhelp_basename = 'php-openclouddoc'

# These folders are copied to the documentation's HTML output
html_static_path = ['_static']

html_css_files = [
'css/custom.css',
]

latex_documents = [
('index', 'php-opencloud.tex', u'php-opencloud Documentation',
u'Jamie Hannaford', 'manual'),
Expand Down

0 comments on commit 34b838e

Please sign in to comment.