Coder Social home page Coder Social logo

hippotastic / astro-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from withastro/docs

0.0 0.0 0.0 89.41 MB

Astro documentation

Home Page: https://docs.astro.build/

License: MIT License

JavaScript 0.28% TypeScript 3.52% CSS 0.03% Astro 1.10% MDX 95.08%

astro-docs's People

Contributors

100gle avatar agustinmulet avatar alexnguyennz avatar alynva avatar astrobot-houston avatar bholmesdev avatar chrissdroid avatar delucis avatar dreyfus92 avatar eliancodes avatar fredkschott avatar hippotastic avatar huyikai avatar hyro32 avatar jasikpark avatar jonathantneal avatar jsparkdev avatar jutanium avatar kecrily avatar kevinzunigacuellar avatar kyosuke avatar liruifengv avatar mcflypartages avatar morinokami avatar princesseuh avatar sarah11918 avatar theotterlord avatar thomasbnt avatar waxer59 avatar yanthomasdev avatar

astro-docs's Issues

Fix tab width in code blocks

When using tabs in code blocks, the result currently gets rendered like this:
image

This looks way too much. We should set the CSS property tab-size: 2 on pre elements to ensure our code blocks look better quickly.

The longer-term solution would be adding automatic linting of Markdown source code to prevent tabs from sneaking into code blocks.

Hippo's small pile of tutorial notes

This is a list of things I noticed while reading through our new draft tutorial branch.

  • I’d love to be able to look at the finished page I‘m about to build before getting started:

    This is what you‘re about to build: [Link]
    (potentially with a small screenshot)

  • The „BY THE END OF THIS SECTION YOU WILL HAVE:“ and the past tense of the bullets feels a bit strange to me. I‘d prefer a „In this step you will (learn how to)“ headline with some present tense bullets

  • The Markdown section seems to assume that I know what frontmatter is without stating or explaining it in the introduction.
    The very first code I should insert into the first created file starts like this:

    ---
    title: 'My First Blog Post'
    pubDate: 2022-07-01
    description: 'This is the first post of my new Astro blog.'
    ---
    

    And I‘m maybe really scratching my head at this point what that is and why it‘s even needed. The page calls it „necessary YAML frontmatter“ before and I don‘t know why it‘s even necessary.

    Maybe we could instead start with a Markdown file without frontmatter and then introduce it to solve a problem? Like a URL that‘s being repeated multiple times in the content, moving that up to a frontmatter prop

  • I notice that all URLs in the tutorial seem to end without a trailing slash. Isn‘t that opposed to Astro‘s default setting of ending URLs with a slash?

  • I may have missed the introduction/explanation for slots, but they suddenly appear when introducing a layout in 4-markdown/2.md. I'd prefer at least a one-liner or inline HTML comment that explains that this is where the content will get rendered.

  • It may be useful to link to previous steps of the tutorial in some places if people skip around.
    For example, in the markdown section, we state You already have a BaseLayout.astro for defining the overall layout of your pages. I‘d love to see a link to the relevant section and step around there.

  • Testing on Windows has shown that Astro.glob('../pages/posts/*.md') does not guarantee an alphabetical order of the returned array by default. We should therefore not assume in the tutorial that the element at index 0 is going to be the first blog post, but add a one-line sort call to the array or explain how to add it.

Link checker & linter todos

Link checker

  • Separate build step from linkcheck step
  • Change concurrency to prevent unwanted cancelling
  • Output annotations where source locations were found first
  • Detect incorrect usage of link tags in Markdown pages:
    Extra space [TypeScript] (https://www.typescriptlang.org/).
    

Linter

  • Only allow i18nReady in frontmatter of English pages

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.