diff --git a/_config.yml b/_config.yml index c4eed3392..018b6a9a5 100644 --- a/_config.yml +++ b/_config.yml @@ -23,12 +23,13 @@ description: "An open source Python-3 (CPython >= 3.5.0) Interpreter written in # baseurl: "/" # the subpath of your site, e.g. /blog url: "https://rustpython.github.io" # the base hostname & protocol for your site, e.g. http://example.com github_username: RustPython -disclaimer: "The disclaimer not to use this in production. Update this in the config.yml file at the root." +disclaimer: "RustPython is in a development phase and should not be used in production or a fault intolerant setting. Our current build supports only about half of the Python standard library." github: https://github.com/RustPython/RustPython/ docs: https://github.com/RustPython/docs/ gitter: https://gitter.im/rustpython/Lobby show_excerpts: true contributor_excerpt: "" # TODO: write something here, goes right under "Contributors" heading +blog-intro: Create an issue if you read something wrong. Edit posts or create new ones via PR on github.com/RustPython/rustpython.github.io navigation: - title: Blog diff --git a/_includes/header.html b/_includes/header.html index 2cbca5672..ab516e59b 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,9 +1,9 @@
diff --git a/_layouts/archive.html b/_layouts/archive.html index 7a2c41062..b19b4c633 100644 --- a/_layouts/archive.html +++ b/_layouts/archive.html @@ -3,7 +3,7 @@ ---
-
+
@@ -11,19 +11,23 @@
Archive
{{ site.title }} {{ page.title | escape }}
+ {{ site.blog-intro }}
-
+
+
+ {{ content }} +
{%- if site.posts.size > 0 -%}
    {%- for post in site.posts -%} -
  • +
  • {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} -
    +
    diff --git a/_layouts/home.html b/_layouts/home.html index 0c26ac744..810492179 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -5,14 +5,14 @@
    -
    -
    -
    +
    +
    +
    -
    +
    {{ site.title }}
    -

    +

    {{ site.description }}

    @@ -23,19 +23,19 @@ -
    -
    +
    +
    RustPython Explainer
    -

    +

    {{ page.explainer }}

    @@ -43,11 +43,11 @@ -
    +
    Installation
    {% for install in page.installation %} - {{ install.command }} + {{ install.command }} {% endfor %}
    @@ -55,13 +55,15 @@ -
    -
    +
    +
    Goals
    -
    +
    {% for goals in page.goals %} -
    - {{ goals.goal }} +
    +
    + {{ goals.goal }} +
    {% endfor %}
    @@ -70,8 +72,7 @@ {{ content }}
    -
    -
    +
    Learn more
      @@ -81,7 +82,6 @@ {% endif %} {%- endfor -%}
    -
    @@ -91,7 +91,7 @@
    -
    +
    Contributors

    {{ site.contributor_excerpt}}

    - - +
    diff --git a/_layouts/post.html b/_layouts/post.html index fb9873188..6b11827b8 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -3,26 +3,22 @@ --- -
    -
    -
    -
    -
    {{ site.title }} Blog
    -
    {{ page.title | escape }}
    -
    -
    -
    +
    +
    + {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} + + +
    {{ site.title }} Blog
    +
    {{ page.title | escape }}
    + {{ site.blog-intro }} +
    - +
    -
    -
    - {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} - -
    +
    +
    {{ content }} -
    diff --git a/_posts/2020-03-12-welcome-to-jekyll.markdown b/_posts/2020-03-12-welcome-to-jekyll.markdown deleted file mode 100644 index b828dba82..000000000 --- a/_posts/2020-03-12-welcome-to-jekyll.markdown +++ /dev/null @@ -1,8 +0,0 @@ ---- -layout: post -title: "Python Interpreters." -date: 2020-03-12 10:34:01 -0400 -categories: featured ---- - -Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. diff --git a/assets/media.css b/assets/media.css index e2e5eed09..ff86a92fa 100644 --- a/assets/media.css +++ b/assets/media.css @@ -44,25 +44,30 @@ width: 50%; } - .w-md-30 { - width: 30%; + .w-md-25 { + width: 25%; } - .w-md-75 { - width: 75%; + .w-md-80 { + width: 80%; } .text-md-center { text-align: center; } + .goal:last-child{ + margin-left: 2em; + } + + .float-md-right { + float: right; + } + } /* fixes for ipad */ @media (min-width: 992px) { - .ml-lg-20-percent { - margin-left: 20%; - } .w-lg-30 { width: 30%; diff --git a/assets/media/bytecode.jpg b/assets/media/bytecode.jpg new file mode 100644 index 000000000..29ef301bc Binary files /dev/null and b/assets/media/bytecode.jpg differ diff --git a/assets/media/python-larpop.jpg b/assets/media/python-larpop.jpg new file mode 100644 index 000000000..222c7cb02 Binary files /dev/null and b/assets/media/python-larpop.jpg differ diff --git a/assets/media/tokenizing-with-errors.jpg b/assets/media/tokenizing-with-errors.jpg new file mode 100644 index 000000000..061f90633 Binary files /dev/null and b/assets/media/tokenizing-with-errors.jpg differ diff --git a/assets/media/tokenizing.jpg b/assets/media/tokenizing.jpg new file mode 100644 index 000000000..a9e4b0673 Binary files /dev/null and b/assets/media/tokenizing.jpg differ diff --git a/assets/style.css b/assets/style.css index cc250e751..103159840 100644 --- a/assets/style.css +++ b/assets/style.css @@ -2,35 +2,54 @@ body { font-family: 'Fira Sans', sans-serif; - margin: 0; + margin: 0em; +} + +section { + padding: 2em; } a { color: #000; } -p { +p , li { line-height: 1.75em; font-size: 1.1em; } hr { - border: 0px; + border: 0px; border-top: 1px solid #000; } -h1 { +hr.dashed { + border: 0px; + border-top: 1px dashed #ccc; +} + +h1, h2, h3, h4, h5, h6 { font-family: 'Sen', sans-serif; +} + +h1 { font-size: 1.5em; margin-top: 2em; } -mark.post-date { +mark.post-date , mark.highlight { background-color: #F74C00; color: #fff; padding: 5px 15px 5px 15px; } +.code , code { + background-color: #F6F8FA; + letter-spacing: 2px; + line-height: 1.75em; + font-size: 1.1em; + padding: 5px; +} /* width */ .w-100 { @@ -60,16 +79,17 @@ mark.post-date { margin: auto; } +.d-table { + display: table; +} + .text-center { text-align: center; } .justify-center { justify-content: center; -} - -.text-justify { - text-align: justify; + align-items: center; } .float-left { @@ -78,10 +98,6 @@ mark.post-date { /* margins and padding */ -.m-small { - margin: 0.75em; -} - .mb-1 { margin-bottom: 1em; } @@ -97,6 +113,9 @@ mark.post-date { .mt-4 { margin-top: 4em; } +.pl-1 { + padding-left: 1em; +} .pl-2 { padding-left: 2em; @@ -110,6 +129,10 @@ mark.post-date { padding: 2em; } +.m-2 { + margin: 2em; +} + .pr-1 { padding-right: 1em; } @@ -183,17 +206,10 @@ ul.list-inline { line-height: 1.5em; } -.goal:last-child{ - margin-right: auto; - margin-left: auto; -} - -.code { - background-color: #F6F8FA; - line-height: 2em; - display:table; - margin-top: 1em; - padding-left: 1em; - padding-right: 1em; - letter-spacing: 2px; +.blog-intro { + background-color: #F6F8FA; + padding-left: 2em; + padding-right: 2em; + padding-top: 1em; + padding-bottom: 1em; } diff --git a/blog.html b/blog.html deleted file mode 100644 index 6deda39fc..000000000 --- a/blog.html +++ /dev/null @@ -1,4 +0,0 @@ ---- -layout: archive -title: Blog ---- diff --git a/blog.markdown b/blog.markdown new file mode 100644 index 000000000..ecf3802e9 --- /dev/null +++ b/blog.markdown @@ -0,0 +1,6 @@ +--- +layout: archive +title: Blog +--- + +One of the goals of this project is to learn about writing interpreters. This is a space for contributors to share what they learned and to communicate the details of the RustPython implementation. You can contribute by using a pull request. By taking the time to write things down, we hope that you get an opportunity to reflect and clarify your own thought processes.