Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Can Pelican-Elegant "do" flowing tables? #655

Open
3 tasks done
tanimislam opened this issue Dec 28, 2020 · 0 comments
Open
3 tasks done

[Help] Can Pelican-Elegant "do" flowing tables? #655

tanimislam opened this issue Dec 28, 2020 · 0 comments

Comments

@tanimislam
Copy link

tanimislam commented Dec 28, 2020

Mandatory Step

  • I am using latest production release of Elegant

Recommended Step

  • I have attached link to my blog source code repository
  • I have reproduced my pelican configuration files

I need help with

Is it possible to create a flowing layout of a table in Pelican-Elegant, rather than a fixed layout. Offending blog article with offending table lives at COVID-19 running update. Offending table in RST logical format is below,

.. list-table:: COVID-19 STATS FOR 50 METROS TO 27 December 2020.
   :widths: auto

   * - RANK
     - IDENTIFIER
     - NAME
     - POPULATION
     - FIRST INC.
     - NUM DAYS
     - NUM CASES
     - NUM DEATHS
     - MAX CASE COUNTY
     - MAX CASE COUNTY NAME
   * - 1
     - nyc
     - NYC Metro Area
     - 19,216,182
     - 01 March 2020
     - 301
     - 1,040,457
     - 47,084
     - 413,472
     - New York City, New York
   * - 2
     - losangeles
     - LA Metro Area
     - 18,711,436
     - 25 January 2020
     - 337
     - 1,264,161
     - 14,827
     - 720,099
     - Los Angeles County, California
   * - 3
     - chicago
     - Chicago Metro Area
     - 9,458,539
     - 24 January 2020
     - 338
     - 688,658
     - 12,646
     - 384,931
     - Cook County, Illinois
   * - 4
     - dallas
     - Dallas Metro Area
     - 7,573,136
     - 09 March 2020
     - 293
     - 457,413
     - 4,697
     - 186,880
     - Dallas County, Texas
   * - 5
     - houston
     - Houston Metro Area
     - 7,066,141
     - 04 March 2020
     - 298
     - 340,668
     - 4,554
     - 231,707
     - Harris County, Texas
   * - 6
     - bayarea
     - Bay Area
     - 6,860,207
     - 31 January 2020
     - 331
     - 216,258
     - 2,182
     - 64,974
     - Santa Clara County, California
   * - 7
     - dc
     - DC Metro Area
     - 6,280,487
     - 05 March 2020
     - 297
     - 265,044
     - 4,874
     - 53,161
     - Prince George's County, Maryland
   * - 8
     - miami
     - Miami Metro Area
     - 6,166,488
     - 06 March 2020
     - 296
     - 501,439
     - 7,827
     - 288,305
     - Miami-Dade County, Florida
   * - 9
     - philadelphia
     - Philadelphia Metro Area
     - 6,102,434
     - 06 March 2020
     - 296
     - 300,090
     - 8,183
     - 89,887
     - Philadelphia County, Pennsylvania
   * - 10
     - atlanta
     - Atlanta Metro Area
     - 6,020,364
     - 02 March 2020
     - 300
     - 317,763
     - 4,325
     - 54,635
     - Fulton County, Georgia
   * - 11
     - phoenix
     - Phoenix Metro Area
     - 4,948,203
     - 26 January 2020
     - 336
     - 329,101
     - 5,253
     - 302,859
     - Maricopa County, Arizona
   * - 12
     - boston
     - Boston Metro Area
     - 4,873,019
     - 01 February 2020
     - 330
     - 240,060
     - 8,090
     - 71,348
     - Middlesex County, Massachusetts
   * - 13
     - detroit
     - Detroit Metro Area
     - 4,319,629
     - 10 March 2020
     - 292
     - 210,792
     - 7,090
     - 83,409
     - Wayne County, Michigan
   * - 14
     - seattle
     - Seattle Metro Area
     - 3,979,845
     - 21 January 2020
     - 341
     - 109,163
     - 1,665
     - 60,695
     - King County, Washington
   * - 15
     - minneapolis
     - Minneapolis Metro Area
     - 3,640,043
     - 06 March 2020
     - 296
     - 254,197
     - 3,210
     - 85,143
     - Hennepin County, Minnesota
   * - 16
     - sandiego
     - San Diego Metro Area
     - 3,338,330
     - 10 February 2020
     - 321
     - 145,842
     - 1,402
     - 145,842
     - San Diego County, California
   * - 17
     - tampa
     - Tampa Metro Area
     - 3,194,831
     - 01 March 2020
     - 301
     - 145,642
     - 2,704
     - 74,368
     - Hillsborough County, Florida
   * - 18
     - denver
     - Denver Metro Area
     - 2,967,239
     - 05 March 2020
     - 297
     - 171,935
     - 2,591
     - 46,570
     - Denver County, Colorado
   * - 19
     - stlouis
     - St. Louis Metro Area
     - 2,803,228
     - 07 March 2020
     - 295
     - 194,851
     - 3,200
     - 67,120
     - St. Louis County, Missouri
   * - 20
     - baltimore
     - Baltimore Metro Area
     - 2,800,053
     - 08 March 2020
     - 294
     - 117,391
     - 2,468
     - 37,578
     - Baltimore County, Maryland
   * - 21
     - charlotte
     - Charlotte Metro Area
     - 2,636,883
     - 11 March 2020
     - 291
     - 143,531
     - 1,613
     - 60,337
     - Mecklenburg County, North Carolina
   * - 22
     - orlando
     - Orlando Metro Area
     - 2,608,147
     - 12 March 2020
     - 290
     - 129,403
     - 1,612
     - 73,049
     - Orange County, Florida
   * - 23
     - sanantonio
     - San Antonio Metro Area
     - 2,550,960
     - 12 February 2020
     - 319
     - 134,506
     - 2,128
     - 112,230
     - Bexar County, Texas
   * - 24
     - portland
     - Portland Metro Area
     - 2,492,412
     - 28 February 2020
     - 303
     - 66,012
     - 827
     - 24,581
     - Multnomah County, Oregon
   * - 25
     - sacramento
     - Sacramento Metro Area
     - 2,363,730
     - 21 February 2020
     - 310
     - 88,322
     - 1,052
     - 62,434
     - Sacramento County, California
   * - 26
     - pittsburgh
     - Pittsburgh Metro Area
     - 2,317,600
     - 13 March 2020
     - 289
     - 104,523
     - 1,984
     - 51,260
     - Allegheny County, Pennsylvania
   * - 27
     - lasvegas
     - Las Vegas Metro Area
     - 2,266,715
     - 05 March 2020
     - 297
     - 164,673
     - 2,261
     - 164,673
     - Clark County, Nevada
   * - 28
     - austin
     - Austin Metro Area
     - 2,227,083
     - 13 March 2020
     - 289
     - 85,166
     - 937
     - 48,424
     - Travis County, Texas
   * - 29
     - cincinnati
     - Cincinnati Metro Area
     - 2,221,208
     - 14 March 2020
     - 288
     - 131,442
     - 1,055
     - 49,823
     - Hamilton County, Ohio
   * - 30
     - kansascity
     - Kansas City Metro Area
     - 2,157,990
     - 07 March 2020
     - 295
     - 101,216
     - 1,167
     - 36,727
     - Johnson County, Kansas
   * - 31
     - columbus
     - Columbus Metro Area
     - 2,122,271
     - 14 March 2020
     - 288
     - 128,202
     - 1,077
     - 80,939
     - Franklin County, Ohio
   * - 32
     - indianapolis
     - Indianapolis Metro Area
     - 2,074,537
     - 06 March 2020
     - 296
     - 142,761
     - 2,409
     - 68,327
     - Marion County, Indiana
   * - 33
     - cleveland
     - Cleveland Metro Area
     - 2,048,449
     - 09 March 2020
     - 293
     - 106,301
     - 1,284
     - 67,417
     - Cuyahoga County, Ohio
   * - 34
     - nashville
     - Nashville Metro Area
     - 1,934,317
     - 05 March 2020
     - 297
     - 168,811
     - 1,556
     - 66,724
     - Davidson County, Tennessee
   * - 35
     - virginiabeach
     - Virginia Beach Metro Area
     - 1,768,901
     - 09 March 2020
     - 293
     - 60,235
     - 792
     - 15,667
     - Virginia Beach city, Virginia
   * - 36
     - providence
     - Providence Metro Area
     - 1,624,578
     - 14 March 2020
     - 288
     - 106,038
     - 2,667
     - 55,922
     - Providence County, Rhode Island
   * - 37
     - milwaukee
     - Milwaukee Metro Area
     - 1,575,179
     - 11 March 2020
     - 291
     - 145,573
     - 1,473
     - 89,838
     - Milwaukee County, Wisconsin
   * - 38
     - jacksonville
     - Jacksonville Metro Area
     - 1,559,514
     - 10 March 2020
     - 292
     - 88,382
     - 1,114
     - 58,296
     - Duval County, Florida
   * - 39
     - oklahomacity
     - Oklahoma City Metro Area
     - 1,408,950
     - 13 March 2020
     - 289
     - 96,298
     - 721
     - 56,086
     - Oklahoma County, Oklahoma
   * - 40
     - raleigh
     - Raleigh Metro Area
     - 1,390,785
     - 03 March 2020
     - 299
     - 55,491
     - 476
     - 41,523
     - Wake County, North Carolina
   * - 41
     - memphis
     - Memphis Metro Area
     - 1,346,045
     - 08 March 2020
     - 294
     - 98,255
     - 1,288
     - 65,713
     - Shelby County, Tennessee
   * - 42
     - richmond
     - Richmond Metro Area
     - 1,291,900
     - 12 March 2020
     - 290
     - 45,733
     - 757
     - 12,399
     - Chesterfield County, Virginia
   * - 43
     - neworleans
     - New Orleans Metro Area
     - 1,270,530
     - 09 March 2020
     - 293
     - 75,394
     - 1,958
     - 30,031
     - Jefferson Parish, Louisiana
   * - 44
     - louisville
     - Louisville/Jefferson County Metro Area
     - 1,265,108
     - 08 March 2020
     - 294
     - 79,779
     - 1,007
     - 50,679
     - Jefferson County, Kentucky
   * - 45
     - saltlakecity
     - Salt Lake City Metro Area
     - 1,232,696
     - 25 February 2020
     - 306
     - 107,933
     - 547
     - 103,615
     - Salt Lake County, Utah
   * - 46
     - hartford
     - Hartford Metro Area
     - 1,204,877
     - 14 March 2020
     - 288
     - 53,624
     - 2,128
     - 43,253
     - Hartford County, Connecticut
   * - 47
     - buffalo
     - Buffalo Metro Area
     - 1,127,983
     - 15 March 2020
     - 287
     - 47,284
     - 1,316
     - 39,486
     - Erie County, New York
   * - 48
     - birmingham
     - Birmingham Metro Area
     - 1,090,435
     - 13 March 2020
     - 289
     - 79,930
     - 986
     - 49,645
     - Jefferson County, Alabama
   * - 49
     - grandrapids
     - Grand Rapids Metro Area
     - 1,077,370
     - 12 March 2020
     - 290
     - 68,501
     - 894
     - 42,379
     - Kent County, Michigan
   * - 50
     - rochester
     - Rochester Metro Area
     - 1,069,644
     - 11 March 2020
     - 291
     - 40,086
     - 704
     - 31,460
     - Monroe County, New York

Here is my pelicanconf.py

#!/usr/bin/env python3
# -*- coding: utf-8 -*- #

#
## follow instructions on creating a home page: https://elegant.oncrashreboot.com/write-about-me
LANDING_PAGE_TITLE = "Tanim's Stupid Intro"
AUTHORS = {
    "Tanim Islam" : {
        "url" : 'https://tanimislam.github.io',
        "blurb" : "I exist"
    }
}   
SITENAME = "Tanim's Stupid Blog"
SITEURL = 'https://tanimislam.ddns.net/blog'
PATH = 'content'
STATIC_PATHS = [ 'downloads', ]
TIMEZONE = 'America/Los_Angeles'
DATE_FORMATS = { "en" : '%d %B %Y' }
DEFAULT_LANG = 'en'


# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
RELATIVE_URLS = True

# ignore these files
IGNORE_FILES = ['.#*', '*draft*']

# Plugins and extensions
MARKDOWN = {
    "extension_configs": {
        "markdown.extensions.admonition": {},
        "markdown.extensions.codehilite": {"css_class": "highlight"},
        "markdown.extensions.extra": {},
        "markdown.extensions.meta": {},
        "markdown.extensions.toc": {"permalink": " "},
    }
}

# Pelican plugins
PLUGIN_PATHS = ['/mnt/software/sources/pelican-plugins']
PLUGINS = [
    'gravatar',
    'render_math',
    'pelican_youtube',
    "tipue_search",
    "encrypt_content",
    'extract_toc',
    "liquid_tags.img",
    "liquid_tags.include_code",
    "pelican_webassets",
    "series",
    "share_post"
]

ENCRYPT_CONTENT = {
    'title_prefix': '[Encrypted]',
    'summary': 'This content is encrypted.'
}

# Defaults
ARTICLE_URL = "{slug}.html"
PAGE_URL = "{slug}.html"
PAGE_SAVE_AS = "{slug}.html"
SEARCH_URL = "search.html"
TAGS_URL = "tags.html"
CATEGORIES_URL = "categories.html"
ARCHIVES_URL = "archives.html"
SEARCH_URL = "search.html"
TIPUE_SEARCH = True

# Appearance
THEME = "/mnt/software/sources/pelican_elegant_theme"

PROJECTS_TITLE = "Hobby Crap That I Do"
PROJECTS = [
    {
        "name": "My Website",
        "url": "https://tanimislam.github.io",
        "description": "Crap about me",
    },
    {
        "name": "Howdy",
        "url": "https://howdy.readthedocs.io",
        "description": "Tools I have developed to administer my Plex server",
    },
    {
        "name": "NPRStuff",
        "url": "https://nprstuff.readthedocs.io",
        "description": "It started off as a bunch of tools to get my favorite NPR and PRI podcasts",
    },
    {
        "name": "COVID-19 stats",
        "url": "https://github.com/tanimislam/covid19_stats",
        "description": "A repository that I developed to track and visualize the NY Times COVID-19 database of United States COVID-19 cases and deaths",
    },
    {
        "name": "Pelican",
        "url": "https://github.com/getpelican/pelican/",
        "description": "Static site generator that powers Elegant. Documentation lacking!",
    },
]

# Blogroll
LINKS = (('Pelican', 'https://getpelican.com/'),
         ('Python.org', 'https://www.python.org/'),
         ('Jinja2', 'https://palletsprojects.com/p/jinja/'),
         ('You can modify those links in your config file', '#'),)

# Social widget
SOCIAL = (('Facebook', 'https://www.facebook.com/tanim.islam'),
          ('LinkedIn', 'https://www.linkedin.com/in/tanimislam'),
          ('Twitter',  'https://www.twitter.com/tanimislam1978'),
          ('Github', 'https://github.com/tanimislam' ),
          ('Instagram','https://www.instagram.com/explore/tags/jumbotheconure/'),)
DIRECT_TEMPLATES = ["index", "tags", "categories", "archives", "search", ]

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
@tanimislam tanimislam changed the title [Help] [Help] Can Pelican-Elegant "do" flowing tables? Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant