You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation: Seclude provider agnostic documentation from AWS section #8085
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)
Hi, I would like to look into this issue. I do have some questions though
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?
Technical question - how do I generate/view the docs locally? I only worked on the code up to now.
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.
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.
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.
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
Activity
tinexw commentedon Oct 5, 2020
Hi, I would like to look into this issue. I do have some questions though
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?medikoo commentedon Oct 6, 2020
@tinexw great thanks for looking after it!
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
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:npm run syncProd:Docs- Simply downloads latest version of a Framework toserverlessfoldernpm run prepareContent- Copies downloaded above docs files into content/framework/docs and generates menunpx 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
tinexw commentedon Oct 10, 2020
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
hacktoberfesttopic to your repo.medikoo commentedon Oct 12, 2020
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
medikoo commentedon Oct 12, 2020
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