@@ -38,7 +38,7 @@
Loading
38 38
        logo=LOGO,
39 39
        theme=theme
40 40
    )
41 -
41 +
    vanilla.site="My Site"
42 42
    pn.config.sizing_mode = "stretch_both"
43 43
44 44
    xs = np.linspace(0, np.pi)

@@ -343,6 +343,10 @@
Loading
343 343
        A title to show in the header. Also added to the document head
344 344
        meta settings and as the browser tab title.""")
345 345
346 +
    site = param.String(default="", doc="""
347 +
        The name of the site. Will be shown in the header and link to the
348 +
        root of the site. Default is '', i.e. not shown.""")
349 +
346 350
    meta_description = param.String(doc="""
347 351
        A meta description to add to the document head for search
348 352
        engine optimization. For example 'P.A. Nelson'.""")
@@ -417,7 +421,7 @@
Loading
417 421
        self.sidebar.param.trigger('objects')
418 422
        self.header.param.trigger('objects')
419 423
        self.modal.param.trigger('objects')
420 -
        self.param.watch(self._update_vars, ['title', 'header_background',
424 +
        self.param.watch(self._update_vars, ['title', 'site', 'header_background',
421 425
                                             'header_color', 'main_max_width'])
422 426
423 427
    def _init_doc(self, doc=None, comm=None, title=None, notebook=False, location=True):
@@ -457,6 +461,7 @@
Loading
457 461
    def _update_vars(self, *args):
458 462
        self._render_variables['app_title'] = self.title
459 463
        self._render_variables['meta_name'] = self.title
464 +
        self._render_variables['site_title'] = self.site
460 465
        self._render_variables['meta_description'] = self.meta_description
461 466
        self._render_variables['meta_keywords'] = self.meta_keywords
462 467
        self._render_variables['meta_author'] = self.meta_author
Files Coverage
panel 85.45%
dodo.py 0.00%
setup.py 0.00%
Project Totals (149 files) 85.05%
7052.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
1
coverage:
2
  status:
3
    patch: off
4
    project:
5
      default:
6
        target: auto
7
        threshold: 0.5%
8

9
comment:
10
  require_changes: yes
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading