Giter Club home page Giter Club logo

site-generator's People

Contributors

dependabot[bot] avatar gregfurmanek avatar monkey-jeff avatar odsod avatar renovate[bot] avatar shwoodard avatar toumorokoshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

site-generator's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/release.yaml
  • actions/checkout v3
  • actions/create-release v1
  • actions/checkout v3
  • python 3.10
  • python 3.10
.github/workflows/test.yaml
  • actions/checkout v3
  • actions/checkout v3
  • actions/checkout v3
  • actions/checkout v3
  • python 3.10
  • python 3.10
  • python 3.10
  • python 3.10
pip_setup
setup.py
  • click ==8.1.3
  • flask ==2.2.2
  • itsdangerous ==2.1.2
  • jinja2 ==3.1.2
  • markdown ==3.4.1
  • markupsafe ==2.1.1
  • pygments ==2.13.0
  • pymdown-extensions ==9.7
  • pyscss ==1.4.0
  • pyyaml ==6.0
  • six ==1.16.0
  • types-Markdown ==3.4.2.1
  • types-PyYAML ==6.0.12
  • werkzeug ==2.2.2

  • Check this box to trigger a request for Renovate to run again on this repository

Adding some "Getting started" section or page

hello! i am trying to get started with setting up my own AIP infrastructure. i started with the site-generator because it seemed like the logical place to start: set up the machinery, and then worry about feeding in some things to publish. the current README does not really help with how to get the thing up and running, so i am proposing to add this information.

aip.updated model property is not consistent with markdown front-matter

For example, look at the latest change to aip-162: aip-dev/google.aip.dev@e487231

In that change the author updated the updated field on line 3 of 0162.md

But, the had no impact on the date displayed in the generated HTML.

image

It looks like the logic of the update property in aip.py is to look for index 0 of the changelog and fall back to the created date if there isn't a changelog.

Perhaps the order of the changelog entries is upside down? Because, the author also updated the changelong in the same change and it still looks like the logic fell back to the created time.

Fix warning when running tests

tests/test_jinja_ext_sample.py:246
  /Users/samwoodard/github.com/shwoodard/site-generator/tests/test_jinja_ext_sample.py:246: PytestCollectionWarning: cannot collect test class 'TestLoader' because it has a __init__ constructor (from: tests/test_jinja_ext_sample.py)
    class TestLoader(loaders.AIPLoader):

Backwards compatibility with previous AIP index pages

After migrating our AIPs to the new site generator, I immediately got a an error when trying to go to the main aip index (/general). The cause for the error is that the index page general.md -- because it ends with .md is being viewed as a AIP instead of the new scope.yaml that appears to define the index pages now.

Recognizing that there needs to be a migration the aip_index files to the new scope.yaml files, and recognizing that we might be the only consumer that needs to go through this migration process right now, I feel that we should maintain support for the old aip_index format as a matter of backwards compatability.

My primary motivation for this is that in addition to our core aip_index files, we also have three code blocks with separate code owners. For me to do the migration from aip_index to scope.yaml I would have to make the changes for them, and then wait until the volunteers from the core AIP editors and the three sub group owners can approve the changes before I can merge.

I would prefer to upgrade the core AIPs, and have them be an example to the sub groups who can upgrade to the new format at their leisure, recognizing that they do not get the benefits of the upgraded format (such as extension) until they upgrade to that format.

Additionally, I think this would just be a good best practice going forward, for the core infrastructure to support one or two previous versions of the AIP structure/format. This would allow sub-orgs and AIP maintainers a bit more flexibility when doing upgrades.

Attribution required when adopting/forking AIPs

The google.aip.dev repo licenses its AIP content under the Creative Commons Attribution 4.0 License. This means that anyone forking the AIPs has to include a notice on just about every page along the lines of "This page contains content that was modified and/or reproduced from work created or shared by Google and used according to the terms in the Creative Commons Attribution 4.0 License."

The simplest way to do this, currently, is to fork the site generator and modify the site footer to add a generic notice like the one above. A better way to do this, not requiring a site generator fork (e.g. a footer.yml in google.aip.dev), would be great.

Example wording would also be great, so that forkers don't have to consult their companies' legal departments.

Google-specific references hard-coded in site generator

There are a few Google-specific hard-coded things in the site generator; these make it necessary to fork the site generator in order to adopt AIPs outside of Google:

  • "Google's API design decisions" in the welcome section of the main page.
  • Google Analytics tracking stuff presumably specific to Google.
  • The logo (mentioned here for completeness; I already filed #65 about this)

I'm not sure this is exhaustive, but it's what I've identified so far.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.