source code of /sitemapdata.py

Last modified
Lines 169

Parent directory Download CGIread sitemap Main page

Quick links: (none)

  1. #!/usr/bin/python
  2. site = 'https://oskog97.com'
  3. imgsite = 'https://oskog97.com'
  4. imglicense = 'https://creativecommons.org/publicdomain/zero/1.0/legalcode'
  5. videolicense = 'https://creativecommons.org/licenses/by/4.0/legalcode'
  6. basedir = '/var/www'
  7. sitemap = [
  8.     {
  9.         'URL': '/',
  10.         'file': 'index.html.src',
  11.         'priority': 0.8,
  12.         'description': 'Homepage', # It's only gonna be viewed in the HTML.
  13.     },
  14.     {
  15.         'URL': '/projects/light-sensor/',
  16.         'file': 'projects/light-sensor/index.html.src',
  17.         'priority': 0.9,
  18.         'description':
  19.             'Analog light sensor based on an LDR. (From a course at Novia UAS)',
  20.         'subsitemap': [
  21.             {
  22.                 'URL': '/projects/light-sensor/light-sensor-part-1-design.pdf',
  23.                 'file': 'projects/light-sensor/light-sensor-part-1-design.pdf',
  24.                 'priority': 1.0,
  25.                 'description': 'Light sensor report part 1: Design',
  26.             },
  27.             {
  28.                 'URL': '/projects/light-sensor/light-sensor-part-2-testing.lowres.pdf',
  29.                 'file': 'projects/light-sensor/light-sensor-part-2-testing.lowres.pdf',
  30.                 'priority': 1.0,
  31.                 'description': 'Light sensor report part 2: Construction,'
  32.                                ' testing & calibration',
  33.             },
  34.         ],
  35.     },
  36.     {
  37.         'URL': '/projects/anonymine/',
  38.         'file': 'projects/anonymine/index.html.src.sh',
  39.         'priority': 1.0,
  40.         'description': '''
  41.             Anonymine is a minesweeper that verifies that the field is
  42.             solvable without any guessing. It supports three different
  43.             fields: traditional, hexagonal and fields with von Neumann
  44.             neighbourhoods.
  45.         ''',
  46.         'videos': [
  47.             {
  48.                 'title': 'Anonymine demo (take 4)',
  49.                 'description': '''
  50.                     Video of Anonymine, a guess free curses mode (terminal)
  51.                     minesweeper with a bunch of unusual and even unique
  52.                     features.
  53.                     ...
  54.                 ''',
  55.                 'thumbnail': 'https://oskog97.com'
  56.                     '/projects/anonymine/imgs3/banner1.png',
  57.                 'player':
  58.                     'https://player.vimeo.com/video/305011251?h=2570bab254',
  59.             },
  60.         ],
  61.         'images': [
  62.             {
  63.                 'URL': '/projects/anonymine/imgs3/setup.png',
  64.                 'description': '''
  65.                     The setup screen of Anonymine allowing you to choose
  66.                     width, height, amount of mines, field type, if guessing
  67.                     should be required, etc
  68.                     -- Anonymine - text based minesweeper without guessing
  69.                 ''',
  70.             },
  71.             {
  72.                 'URL': '/projects/anonymine/imgs3/last-cells.png',
  73.                 'description': '''
  74.                     The von Neumann field: The biggest number you'll ever see
  75.                     is 3.  This mode makes Anonymine a unique minesweeper.
  76.                     (Attention mode has been enabled to find the last few
  77.                     cells.)
  78.                     -- Anonymine - text based minesweeper without guessing
  79.                 ''',
  80.             },
  81.             {
  82.                 'URL': '/projects/anonymine/imgs3/traditional.png',
  83.                 'description': '''
  84.                     Traditional (Moore) field, nothing special
  85.                     -- Anonymine - text based minesweeper without guessing
  86.                 ''',
  87.             },
  88.             {
  89.                 'URL': '/projects/anonymine/imgs3/hexagonal.png',
  90.                 'description': '''
  91.                     Hexagonal field
  92.                     -- Anonymine - text based minesweeper without guessing
  93.                 ''',
  94.             },
  95.             {
  96.                 'URL': '/projects/anonymine/imgs3/losers.png',
  97.                 'description': '''
  98.                     The losers' highscores
  99.                     -- Anonymine - text based minesweeper without guessing
  100.                 ''',
  101.             },
  102.             {
  103.                 'URL': '/projects/anonymine/imgs3/banner1.png',
  104.                 'description': '''
  105.                     Anonymine - text based minesweeper without guessing
  106.                 ''',
  107.                 'license': 'https://creativecommons.org/licenses/by/4.0/legalcode',
  108.             },
  109.             {
  110.                 'URL': '/projects/anonymine/imgs3/banner2.png',
  111.                 'description': '''
  112.                     Anonymine - text based minesweeper without guessing
  113.                 ''',
  114.                 'license': 'https://creativecommons.org/licenses/by/4.0/legalcode',
  115.             },
  116.         ],
  117.     },
  118.     {
  119.         'URL': '/small-scripts/',
  120.         'file': 'small-scripts/index.html.src',
  121.         'priority': 0.8,
  122.         'description': '''
  123.             Scripts written in Python or shell that turned out to be
  124.             quite successful
  125.         ''',
  126.         'subsitemap': [
  127.             {
  128.                 'URL': '/read/?path=/small-scripts/minify',
  129.                 'file': 'small-scripts/minify',
  130.                 'priority': 0.7,
  131.                 'description': '''
  132.                     Simple XHTML minifier that doesn't invalidate your XHTML.
  133.                 ''',
  134.             },
  135.             {
  136.                 'URL': '/read/?path=/small-scripts/killbom',
  137.                 'file': 'small-scripts/killbom',
  138.                 'priority': 0.7,
  139.                 'description': 'Script for eliminating all UTF-8'
  140.                                ' Byte Order Marks.',
  141.             },
  142.             {
  143.                 'URL': '/read/?path=/small-scripts/shrink-disavow',
  144.                 'file': 'small-scripts/shrink-disavow',
  145.                 'priority': 0.7,
  146.                 'description': '''
  147.                     Minify bloated Google Webmaster Tools/Search Console disavow
  148.                     files.
  149.                 ''',
  150.             },
  151.             {
  152.                 'URL': '/read/?path=/mkhtml',
  153.                 'file': 'mkhtml',
  154.                 'priority': 0.7,
  155.                 'description': '''
  156.                     Macro preprocessor and navigation generator used to build
  157.                     this website.
  158.                 ''',
  159.             },
  160.         ],
  161.     },
  162. ]
  163. html_sitemaps = [
  164.     ('/read/?sitemap=html', "CGIread's sitemap")
  165. ]