1. 29 10月, 2020 1 次提交
    • A
      Use a trailing slash for the rewrite URL · 3d02d47f
      Andrea Frittoli 提交于
      For relative URLs that are not matched to a file on disk, we
      rewrite them to a github URL. The base URL is joined to the
      path with urljoin. If the the path includes a `..` then
      urljoin goes up one level from the last `/` in the base URL.
      Because of that, we need the base url to end with a `/`.
      Added tests to avoid this from breaking in future.
      Signed-off-by: NAndrea Frittoli <andrea.frittoli@gmail.com>
      3d02d47f
  2. 27 10月, 2020 1 次提交
    • A
      Rewrite the link re-writing logic · c09354a6
      Andrea Frittoli 提交于
      The previous logic parses URLs with a regex first and then using
      the markdown library. It then uses urlopen().read() to validate
      links.
      
      We use now the markdown library only to extract the list of links,
      and then urlparse to deconstruct, analyse, adapt and reconstract
      the link. We do not attempt to fetch links anymore, which means
      that external links are not guaranteed to be working.
      
      Absolute URLs are not changed (they may be external)
      Fragments are relative to the page and do not need changes
      Path only links should point to a file synced to the website
      but sometimes the file may be missing (if it's not in the sync
      configuration), so we follow this approach:
      - prefix with base_path and check for the file locally
      - if not found, prefix with base_url instead
      
      Note that urlparse treats URLs without scheme like path only
      URLs, so 'github.com' will be rewritten to base_url/github.com
      Signed-off-by: NAndrea Frittoli <andrea.frittoli@gmail.com>
      c09354a6
  3. 23 10月, 2020 2 次提交
  4. 21 10月, 2020 2 次提交
    • A
      Further cleanup the sync script · c93169a9
      Andrea Frittoli 提交于
      Cleanup typos, simplify logic in a few places.
      Make the list of files config a dict instead of a list of dicts.
      Signed-off-by: NAndrea Frittoli <andrea.frittoli@gmail.com>
      c93169a9
    • P
      refactor sync script · c4894b3a
      popcor255 提交于
      As a developer, it is difficult to make changes to a script and ensure that nothing is broken without tests. Test are added in this patch with 80% code coverage. The script has also been refactored to increase readability. This refactor is not a pure refactor. The sync did not work properly. There is a list of bugs that reported the script generating broken links, #160, #126, #158, #133, #134. This refactor also includes a patch that fixes these bugs. The patch redirects a user to github if there is a relative link to a file that does not exist. This is important because some links will reference a snippet of code, test, or example. These artifacts are not docs, they are not rendered properly on the site. It is better to redirect the user to the intended artifact if the file is not synced. This prevents random 404s, and preserves the original behavior of the sync script. There are other approaches to fix this bug. This includes, manually editing links, downloading the files that the broken link are referencing in the sync config file, or removing the broken links. This is the best approach because broken links are automatically fixed and do not require manual intervention. This approach causes a side effect of not requiring the config file to be up-to date because the script will redirect the user to github. We want to encourage frequent sync. So eventually, this script should become tekton-ified (tekton task) and placed into the tekton catalog repo. Sync needs to become a tekon task in order for every repo to sync docs on push event.
      c4894b3a
  5. 10 10月, 2020 2 次提交
  6. 22 9月, 2020 1 次提交
    • P
      remove modal from interactive tutorials · f2d525e0
      popcor255 提交于
      The modal in the interactive tutorials is difficult to navigate. I can not scroll (left to right) and (up and down) because of the embedded iframe.
      f2d525e0
  7. 10 9月, 2020 1 次提交
  8. 03 9月, 2020 1 次提交
  9. 02 9月, 2020 1 次提交
  10. 20 8月, 2020 1 次提交
    • A
      Update Katacoda scenarios to Kubernetes 1.18 · abe688ec
      Alan Greene 提交于
      Update all Katacoda scenarios to run on Kubernetes 1.18, with
      a 2 node cluster.
      
      Fix some issues in the tasks and runs scenarios that seem to have
      been undone in rebases before they were merged.
      
      Update the Dashboard scenario to run the latest Pipeline and
      Dashboard versions at time of writing.
      
      Remove the use of the ingress in the Dashboard scenario since
      it appears unstable on Katacoda with kubernetes 1.18. Using a
      port-forward is sufficient for this scenario.
      abe688ec
  11. 12 8月, 2020 1 次提交
    • A
      Add Katacoda playground · 648a2291
      Alan Greene 提交于
      Add a Katacoda scenario that can act as a playground for users
      to experiment with Tekton in a sandbox environment.
      
      This environment provides a 2-node Kubernetes cluster with the
      following projects installed:
      - Pipelines v0.14.3
      - Dashboard v0.8.2
      - CLI v0.11.0
      
      Typical startup time is <1minute, but may take 2 or 3 minutes
      in some cases. The installation should not require any manual
      steps by the user.
      648a2291
  12. 31 7月, 2020 1 次提交
  13. 29 7月, 2020 1 次提交
    • A
      Update image URLs in dashboard Katacoda tutorial · 682190cf
      Alan Greene 提交于
      Katacoda supports linking to images in the assets folder. Update our
      existing links to use this approach instead of using the GitHub 'raw'
      URLs as this gives us greater portability for the tutorials and ensures
      the correct version of the images is loaded even if we stop loading content
      from the `master` branch in future.
      682190cf
  14. 21 7月, 2020 2 次提交
  15. 20 7月, 2020 1 次提交
  16. 27 6月, 2020 2 次提交
  17. 18 6月, 2020 2 次提交
  18. 16 6月, 2020 1 次提交
  19. 15 6月, 2020 2 次提交
  20. 11 6月, 2020 1 次提交
  21. 10 6月, 2020 4 次提交
  22. 02 6月, 2020 1 次提交
  23. 29 5月, 2020 3 次提交
  24. 28 5月, 2020 1 次提交
    • P
      Fix css from breaking for different browsers · 0e163e10
      popcor255 提交于
      The banner for cd foundation and partners are off center after a certain size of 1739px. As a user this breaks the flow and decreases the usuability of the website.
      
      Change broken CSS styles
      
      The padding for the banners on the tekton webpage had incorrect max-widths and some strange padding.
      As a user these changes improve the flow of the website.
      
      add bg color to wrapper below container
      
      The rendering on IOS mobile devices are different and causes the style to overridden on IOS devices. Removing the Copyright on the footer. Added the class for styles one element below to fix this issue
      
      remove bootstrap styling
      0e163e10
  25. 26 5月, 2020 1 次提交
  26. 19 5月, 2020 1 次提交
    • S
      Remove sbwsg from OWNERS · 78a94dfb
      Scott 提交于
      It made sense for me to be in OWNERS file while we were releasing Beta
      but I'm not on top of current website planning/work to review PRs.
      78a94dfb
  27. 18 5月, 2020 2 次提交
    • A
      Update 'Edit this page' link to point to correct project repo · 246eb247
      Alan Greene 提交于
      Add support for a custom page param that can be used to point the
      links in the sidebar to the correct project repos.
      
      'Edit this page' will open the editor pointing to the correct file
      in the project repo, instead of trying to find it in the website repo.
      
      'Create an issue' will open the new issue UI in the target project repo.
      246eb247
    • S
      Fix username formatting. · 59e714e8
      Sergetron 提交于
      Fixes username formatting.
      59e714e8