This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//restante dos atributos de configurações | |
// This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. | |
copyright: `Copyright © ${new Date().getFullYear()} Post sobre docusaurus`, | |
//restante dos atributos de configurações |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//restante dos atributos de configurações | |
/* path to images for header/footer */ | |
headerIcon: 'img/docusaurus.svg', | |
footerIcon: 'img/docusaurus.svg', | |
favicon: 'img/docusaurus.ico', | |
//restante dos atributos de configurações |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//restante dos atributos de configurações | |
/* Colors for website */ | |
colors: { | |
primaryColor: '#2e8555', | |
secondaryColor: '#388b5d', | |
}, | |
//restante dos atributos de configurações |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//demais configurações | |
const siteConfig = { | |
title: 'Post sobre docusaurus', | |
tagline: 'Um site sobre o docusaurus', | |
//restante dos atributos de configurações | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir criando-site-lp-docs-docusaurus | |
cd criando-site-lp-docs-docusaurus | |
docusaurus-init | |
cd criando-site-lp-docs-docusaurus/website | |
npm start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g docusaurus-init |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AddPerm", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::nome-do-bucket/*" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILESYSTEM_DRIVER=s3 | |
AWS_ACCESS_KEY_ID='sua-key' | |
AWS_SECRET_ACCESS_KEY='sua-access-key' | |
AWS_DEFAULT_REGION=us-west-2 | |
AWS_BUCKET=aws-s3-files | |
AWS_URL="https://s3.us-west-2.amazonaws.com/aws-s3-files" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"aws/aws-sdk-php": "3.0", | |
"league/flysystem-aws-s3-v3": "~1.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/paulodutra/upload-base64-laravel6.git | |
mv upload-base64-laravel6 salvando-arquivos-aws-s3-laravel-6 | |
composer install | |
cp .env.example .env | |
php artisan key:generate |