Skip to content

Documentation: Seclude provider agnostic documentation from AWS section #8085

Open

Description

@medikoo

Use case description

Currently documentation as organized here: https://www.serverless.com/framework/docs/providers/aws/ covers many provider agnostic section under AWS section, which is confusing.

We should have dedicated provider agnostic section

Proposed solution

Note: It's advisable to cover each section with different PR, so we do not fall into large, hard to review PR

1. Create top level CLI reference section

With following sections:

  • create - Create here provider agnostic version, instead of listing all available templates, we should list available providers, and link there to provider specific create documentations, which should be truncated so it links top level create page, and lists all available templates for given provider.
  • install (to be moved entirely)
  • login (to be moved entirely)
  • plugin * (to be moved entirely)
  • print (to be moved entirely)
  • stats (to be moved entirely)

2. Create top level user guide section

  • intro - Move entirely and make content provider agnostic (we can combine some examples from different providers)
  • quick start - Keep at providers, but replace all content of "Initial Setup", with link to top level "get started"
  • installation - Remove from providers (do not introduce top level), but watch for some provider specific info, if there is some, move it to quick start
  • serverless.yml - Create provider agnostic version at top level (with no provider specific settings). Leave provider specific version at providers but strip from there most provider-agnostic settings (we should leave just those crucial for config, as service name)

3. Additionally:

  • Rename provider CLI references to providers

Activity

  1. tinexw commented on Oct 5, 2020

    @tinexw
    Contributor

    Hi, I would like to look into this issue. I do have some questions though

    1. Regarding 1. and 2. - Not only AWS but also many others contain the mentioned items e.g. create, install . Would you remove them from everywhere or keep them in provider sections and just put them additionally to the new top level section?
    2. Technical question - how do I generate/view the docs locally? I only worked on the code up to now.
  2. medikoo commented on Oct 6, 2020

    @medikoo
    ContributorAuthor

    @tinexw great thanks for looking after it!

    Regarding 1. and 2. - Not only AWS but also many others contain the mentioned items e.g. create, install . Would you remove them from everywhere or keep them in provider sections and just put them additionally to the new top level section?

    That's a good question. I've looked into more carefully, and updated top description with more detailed proposal instructions. Let me know what you think

    Technical question - how do I generate/view the docs locally? I only worked on the code up to now.

    This requires running https://github.com/serverless/site/. Once you have this repo checked out and installed (note you should use yarn), follow this steps:

    • Ensure to use Node.js v12 (As I checked recently it doesn't work with Node.js v14)
    • npm run syncProd:Docs - Simply downloads latest version of a Framework to serverless folder
    • npm run prepareContent - Copies downloaded above docs files into content/framework/docs and generates menu
    • npx gatsby develop - It should setup a server with a website. Still I think you need to restart it, whenever you change something.

    As you see it works on docs as copied from this repo. I usually use it only when I add new pages, to confirm all generates well. When change is just about updating the content of an existing page I do not bother with built, but simply trust markdown overview.

    Introduction of new sections will require update in https://github.com/serverless/site/blob/15ed7393db1c64f55691c1d8dddd9f7ee22ab87d/scripts/docs/generate-new-menu.js but you don't have to worry about (I'll ensure it's updated before related PR is merged

  3. tinexw commented on Oct 10, 2020

    @tinexw
    Contributor

    Hi @medikoo ,

    thanks for the updated description - looks good to me.

    I don't seem to have access to https://github.com/serverless/site/ - I get a 404.

    btw: Are you participating in Hacktoberfest? I actually came across this issue while looking for something to work on as part of Hacktoberfest. If you are, the rules changed this year and you need to add the hacktoberfest topic to your repo.

  4. medikoo commented on Oct 12, 2020

    @medikoo
    ContributorAuthor

    I don't seem to have access to https://github.com/serverless/site/ - I get a 404.

    ah.. indeed. I forgot it's maintained as private repository.

    In such case we should stick purely to markdown previews (Prettier already guards its style). If some extra configuration would be needed to have new pages properly setup, I'll point in comments specifically

  5. medikoo commented on Oct 12, 2020

    @medikoo
    ContributorAuthor

    btw: Are you participating in Hacktoberfest?

    Not specifically, as it's known to be controversial: https://dev.to/thewdhanat/digitalocean-s-hacktoberfest-is-hurting-open-source-2g99

    Anyway we always welcome contributions, and recognize our contributors on Twitter periodically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions