Default to dark theme to avoid screen flashing and fix typo

This commit is contained in:
Lonami Exo 2018-12-21 10:56:40 +01:00
parent e852dccebf
commit b9d4eb5449
3 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ you're able to just do this:
All methods in the :ref:`telegram-client` call `.get_input_entity() All methods in the :ref:`telegram-client` call `.get_input_entity()
<telethon.client.users.UserMethods.get_input_entity>` prior <telethon.client.users.UserMethods.get_input_entity>` prior
to sending the requst to save you from the hassle of doing so manually. to sending the request to save you from the hassle of doing so manually.
That way, convenience calls such as `client.send_message('lonami', 'hi!') That way, convenience calls such as `client.send_message('lonami', 'hi!')
<telethon.client.messages.MessageMethods.send_message>` <telethon.client.messages.MessageMethods.send_message>`
become possible. become possible.

View File

@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Telethon API</title> <title>Telethon API</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link id="style" href="css/docs.light.css" rel="stylesheet"> <link id="style" href="css/docs.dark.css" rel="stylesheet">
<script> <script>
(function () { (function () {
var style = document.getElementById('style'); var style = document.getElementById('style');

View File

@ -42,7 +42,7 @@ class DocsWriter:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{title}</title> <title>{title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link id="style" href="{rel_css}/docs.{def_css}.css" rel="stylesheet"> <link id="style" href="{rel_css}/docs.dark.css" rel="stylesheet">
<script> <script>
document.getElementById("style").href = "{rel_css}/docs." document.getElementById("style").href = "{rel_css}/docs."
+ (localStorage.getItem("theme") || "{def_css}") + (localStorage.getItem("theme") || "{def_css}")