From acb5ef585f62d506f6f0345b306fc6bc9c15fef4 Mon Sep 17 00:00:00 2001 From: Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> Date: Thu, 16 May 2024 17:31:42 +0530 Subject: chore: ruff cleanup --- docs/conf.py | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 51f800db..0a4594b3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -125,8 +125,7 @@ html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -html_theme_options = { -} +html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. # html_theme_path = [] @@ -166,14 +165,7 @@ html_static_path = ['_static'] # html_use_smartypants = True # Custom sidebar templates, maps document names to template names. -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'links.html', - 'searchbox.html' - ] -} +html_sidebars = {'**': ['about.html', 'navigation.html', 'links.html', 'searchbox.html']} # Additional templates that should be rendered to pages, maps page names to # template names. @@ -227,13 +219,10 @@ htmlhelp_basename = 'Glancesdoc' latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # 'papersize': 'letterpaper', - # The font size ('10pt', '11pt' or '12pt'). # 'pointsize': '10pt', - # Additional stuff for the LaTeX preamble. # 'preamble': '', - # Latex figure (float) alignment # 'figure_align': 'htbp', } @@ -242,8 +231,7 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'Glances.tex', 'Glances Documentation', - 'Nicolas Hennion', 'manual'), + (master_doc, 'Glances.tex', 'Glances Documentation', 'Nicolas Hennion', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -271,10 +259,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [ - ('glances', 'glances', 'An eye on your system', - '', 1) -] +man_pages = [('glances', 'glances', 'An eye on your system', '', 1)] # If true, show URL addresses after external links. # man_show_urls = False @@ -286,9 +271,15 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'Glances', 'Glances Documentation', - author, 'Glances', 'One line description of project.', - 'Miscellaneous'), + ( + master_doc, + 'Glances', + 'Glances Documentation', + author, + 'Glances', + 'One line description of project.', + 'Miscellaneous', + ), ] # Documents to append as an appendix to all manuals. -- cgit v1.2.3 From d392caf6f65286f6b6a38b0f5b28adb391c28ac8 Mon Sep 17 00:00:00 2001 From: Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> Date: Fri, 17 May 2024 02:23:53 +0530 Subject: chg: ruff - isort fixes --- docs/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 0a4594b3..5cdfc920 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,8 +12,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys import os +import sys from datetime import datetime # If extensions (or modules to document with autodoc) are in another directory, @@ -27,7 +27,6 @@ sys.path.insert(0, os.path.abspath('..')) # WARNING: Do not move this import before the sys.path.insert() call. from glances import __version__ - # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. -- cgit v1.2.3 From 108ffcdfb637e288479f49ec083f601a1e88f51c Mon Sep 17 00:00:00 2001 From: Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> Date: Fri, 17 May 2024 03:05:33 +0530 Subject: chg: ruff - pyupgrade --- docs/conf.py | 1 - 1 file changed, 1 deletion(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 5cdfc920..de8ac1c7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Glances documentation build configuration file, created by # sphinx-quickstart on Tue Mar 1 10:53:59 2016. -- cgit v1.2.3