The Python Game Book

code games. learn Python.

User Tools

Site Tools


Sidebar

Github:

en:secret:start

secret

~~TODOLIST~~

from guidos europython2020 talk:

secret todos

  • <todo>understanding struct plugin, use it for tutorial start pages, maybe for glossary</todo>https://www.dokuwiki.org/plugin:struct
  • <todo #horst:2020-05-09>check correct GPL license for code and add it to each code block?</code>
  • <todo>kill / improve slowgoblins tutorial (derzeit geparkt in secret</todo>
  • <todo>improve pygame tutorial</todo>
  • <todo>create arcade tutorial</todo>
  • <todo #horst:2020-05-14>create godot 3d tutorial</todo>
  • <todo>correct resources links (image horstjens etc)</todo>
  • <todo>new logo</todo>

try out pygame2: Just try it out. pip install pygame==2.0.0.dev10

stuff that i try out and that should not be seen (yet)

here a slow, detailed Goblin tutorial with everything explained in a tedious way:

svg test

interactive svg graphic

code syntax highlithing

mit gist: dieses javascript einfügen: <html><script type="text/javascript" src="http://thepythongamebook.com/scripts/gist-embed.min.js" ></script></html>

problem mit direkt von github: rawstring mit falschem escape code r\c nicht erkannt, keine direkte unterstützung von github für embedded code

gist → geht noch am besten, direkt unterstützt von github für embedded code. Es ist notwendig zurerst auf github den file anzulegen der das ganze ding benennt, danach erst die einzelnen (python) files zusätzlich muß (damit gist embed funktioniert) auf jeder dokuwiki oben folgender text stehen: <html><script type="text/javascript" src="http://thepythongamebook.com/scripts/gist-embed.min.js" ></script></html>

used plugins

  • syntax highlighter4:
    • ersetzt <code>, aber nicht <file>. (admin config) Syntax:
    • <code python; first-line:1; highlight:[2,5,16], title: myfile.py> ... </code>
    • no line numbers: <code python; gutter:false> ... </code>
  • backlinks:
    • im sidebar
  • tabbox:
    • <tabbox first_name>...<tabbox second_name>....</tabbox>
  • redirect:
    • ~~REDIRECT>new_site~~
  • iframe:
    • {{url>external_site_to_include_as_iframe}}
    • {{page>[id]&[flags]}} or {{section>[id]#[section]&[flags]}}
  • imagebox:
    • [{{image|image description}}]
  • svg-embed otherwise svg images would not work

===== Changes to dokuwiki / plugins

  • Standard-Template: tpl_footer.php footer-file verändert:

<div id="dokuwiki__footer"><div class="pad">
    <!--<?php tpl_license(''); // license text ?>-->
    The content of this wiki is licensed by <a href="http://spielend-programmieren.at/en:kontakt">Horst JENS</a> under <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative-Commons Attribution-Share-alike 4.0 international license (cc-by-sa 4.0)</a>
    <span class="buttons">
        <?php
            tpl_license('button', true, false, false); // license button, no wrapper
            $target = ($conf['target']['extern']) ? 'target="'.$conf['target']['extern'].'"' : '';
        ?>
        <a href="http://spielend-programmieren.at/en:kontakt#donation" title="Donate" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-donate.gif" width="80" height="15" alt="Donate" /></a>
        <a href="https://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target?>><img
            src="<?php echo tpl_basedir(); ?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
    </span>
</div></div><!-- /footer -->

  • Backlinks-Plugin, syntax.php verändert:

              // $renderer->doc .= "<strong>Plugin Backlinks: ".$lang['nothingfound']."</strong>".DW_LF;
              $renderer->doc .= "".$lang['nothingfound']."".DW_LF;>

Marco

en/secret/start.txt · Last modified: 2020/07/24 18:17 by horst