Commit Graph

1144 Commits

Author SHA1 Message Date
Tim 0030867b0e Merge pull request #4748 from backstage/timbonicus/getting-started-tweaks
docs: Improve flow for getting-started docs
2021-03-02 07:18:40 -07:00
Johan Haals 66e09c212f Merge pull request #4718 from backstage/mob/scaffolder-schema-v2
scaffolder: Introduce support for custom actions
2021-03-02 10:54:47 +01:00
Johan Haals 8a01a60859 Fix descriptor format docs
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:05 +01:00
Johan Haals f123395f82 Fix typos
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:05 +01:00
Johan Haals cf938a5611 Document creation of custom actions
Co-authored-by: blam<ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:04 +01:00
Johan Haals 043171a8e4 Add docs page for writing custom actions
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:04 +01:00
Johan Haals fe2823307f chore: fix typos
Co-authored-by: blam<ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:04 +01:00
Johan Haals abadf05a9f fix links
Co-authored-by: blam<ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:03 +01:00
Johan Haals 78cfb21b1a Update scaffolder documentation
Co-authored-by: Ben Lambert <ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:03 +01:00
Johan Haals 74850569bf Document builtin actions
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:03 +01:00
Johan Haals a01e6d920d chore: fix typos
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:03 +01:00
Johan Haals 37744d8f4b Add docs for writing templates
Co-authored-by: blam<ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:02 +01:00
Johan Haals 296bba9910 Delete old scaffolder docs
Co-authored-by: Ben Lambert <ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:22:02 +01:00
Johan Haals a8eb2b45e3 microsite: Add GitHub Apps documentation
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 09:25:01 +01:00
Tim Hansen 64615dd726 Fix relative link 2021-03-01 14:52:55 -07:00
Tim Hansen cdd6d1db7c docs: Improve flow for getting-started docs 2021-03-01 14:33:29 -07:00
Andreas Stenius 2edd4614de cli: add missing --format option to config:schema.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-01 17:34:51 +01:00
Himanshu Mishra b90c83e329 TechDocs: Update features based on Gary's feedback 2021-03-01 10:12:26 +01:00
Himanshu Mishra 8fbd591fd4 TechDocs: Update roadmap with milestones 2021-03-01 10:12:26 +01:00
Patrik Oldsberg c600680599 Merge pull request #4559 from kaos/kaos/cli-config-schema
backstage-cli: add config:schema command.
2021-02-26 15:28:11 +01:00
Patrik Oldsberg 5ffb6c57f6 Merge pull request #4700 from backstage/rugvip/opternal
core: implement optional external routes and use to toggle "Create Component" button
2021-02-26 10:41:27 +01:00
Patrik Oldsberg 4097031e6a Update docs/getting-started/contributors.md
Co-authored-by: Adam Harvey <adam.harvey@dxc.com>
2021-02-25 22:27:04 +01:00
Patrik Oldsberg 243dd5771b Apply suggestions from code review
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2021-02-25 19:08:04 +01:00
Patrik Oldsberg 3bc7365bbc docs: added note about marking frontend config visible 2021-02-25 18:40:40 +01:00
Patrik Oldsberg 0bb18ad79d docs: document optional external route refs 2021-02-25 17:48:31 +01:00
Andreas Stenius 4548ed4e91 Merge remote-tracking branch 'upstream/master' into kaos/cli-config-schema 2021-02-24 08:56:58 +01:00
Fredrik Adelöw bba5660b44 Merge pull request #4579 from rbideau/4576-google-analytics
Add google analytics scripts in template for standalone app
2021-02-22 16:17:30 +01:00
Fredrik Adelöw bde37d41da Merge pull request #4585 from stefanbuck/remove-app-diff
chore: remove app:diff command from cli
2021-02-22 16:07:20 +01:00
r.bideau 72722c1f6c Add Google Analytics installation to sidebars and mkdocs
Signed-off-by: r.bideau <7304827+rbideau@users.noreply.github.com>
2021-02-22 10:31:59 +01:00
Fredrik Adelöw 6ba3a6d39f Merge pull request #4500 from backjo/feature/aws-assume-role
feat: add support for assuming role in plugins that use AWS
2021-02-22 08:32:52 +01:00
r.bideau 24b59505d0 Moves google analytics docs in an integration section
- with a link to it in the observability page.
- documents the default behavior and add a link to the GA developer guides

Signed-off-by: r.bideau <7304827+rbideau@users.noreply.github.com>
2021-02-21 20:41:44 +01:00
James Turley 9c521c53a7 Rename view/edit annotations 2021-02-20 11:37:24 +00:00
James Turley e337085d38 Use proper location ref for custom source location 2021-02-20 11:37:24 +00:00
James Turley a4f863f8f8 Document browser URL annotations 2021-02-20 11:13:22 +00:00
Fredrik Adelöw c368ae7eef Merge pull request #4595 from lndbrg/master
Recommend a safer find command
2021-02-19 11:50:31 +01:00
Andreas Stenius 4b01c7caaf docs(cli): describe config:schema
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-02-19 11:17:15 +01:00
Olle Lundberg 79f7461709 Recommend a safer find command
Piping find to xargs is dangerous as xargs will interpret any characters
defined in $IFS (Input Field Separator), usually <space><tab><newline>,
as separators in its input. This might lead to unintented operations
on files if any of the input to xargs containts any of the characters
defined in $IFS, most often this happens if a file contains a space in
its name. The safest way to execute a find | xargs is to force find to
separate its output with null characters and tell xargs to read null
characters as the delimiter AND also tell xargs to put the argument to
the command its supposed to run in quotation marks:
   `find ... -print0 | xargs -I {} -0 rm -rf "{}"`
When running with GNU find you most likely also want to add
--no-run-if-empty or -r for short:
   `find ... -print0 | xargs -I {} -0 --no-run-if-empty rm -rf "{}"`
This stops the invocation of xargs if there is no input on stdin, this
is however not portable and will break on BSD/macOS, the portability is
not a concern in this case though as the find | xargs happens in docker.

As you can see this gets unwieldly fast and despite using every
precaution, it's still not safe. When xargs is run with -0 to treat null
characters as the delimiter for its input and a file has a null
character in its name, xargs will treat the null character in the file
name as a delimiter and xargs will exhibit the same behaviour as it did
with spaces in file names.

Ahhh, isn't Unix wonderful? Loose APIs defined as untyped strings...

There is a salvation though! Most find xargs pipes are unnecessary and
can be replaced with built in functionality in find, the -exec flag.
Now, -exec comes in 2 flavours, one that is terminated with \; (the most
commonly used) and one terminated with \+ (the one most people actually
want to use). \; spawns a new invocation per found entry, thus creating
some process creation overhead. \+ instead concatenates the found
entries as arguments to the program we want to run, resulting in less
overhead and usually a faster execution.
Since find is smart enough to be aware of what constitutes an entry
(i.e it doesn't treat the entries as just a bunch of random strings to
read from stdin) it makes the whole invocation of the program, rm in
this case, safe even if it contains characters defines in $IFS or null
characters.

And with this overly elaborate commit message I bring you this 1 line
change.
2021-02-19 09:57:32 +01:00
Johan Haals c352ed59b5 Merge branch 'master' into mob/scaffolder-frontend 2021-02-19 09:26:51 +01:00
Stefan Buck 6266ddd113 chore: remove app:diff command from cli 2021-02-18 22:12:46 +01:00
Adam Harvey cf9a229a3e Merge pull request #4565 from adamdmharvey/doco-updates
docs: Update project structure and design
2021-02-18 15:05:51 -05:00
Adam Harvey fd55339103 Prettier fix 2021-02-18 09:46:38 -05:00
Adam Harvey 2203379000 Fix "it" possessive
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2021-02-18 09:41:09 -05:00
blam d50ddbd1d3 Merge branch 'master' of github.com:backstage/backstage into mob/scaffolder-frontend
* 'master' of github.com:backstage/backstage: (118 commits)
  cli: Fix handling of dynamic imports in esm.js files
  minor typo in migration
  chore(deps): bump archiver from 5.1.0 to 5.2.0
  dockerfile: mention build-image command
  Apply suggestions from code review
  update backend Dockerfile to use config example and fix comment
  docs: add full docker deployment docs
  chore: fix code review
  chore: fixing syntax
  docs: fixing custom implementations of utitiy apis
  a small start to the integrations section of the config
  TechDocs: Add changeset about Docker permission fix
  Updated unit tests for the new UI
  TechDocs: Pass user and group ID when invoking docker container
  Replace logging erro and return undefined for a throw new Error
  @types/react 16 not 17
  Use a more strict type for `variant` of cards
  docs(TechDocs): Add more context with AWS docs hyperlinks
  Added missing dep on @types/react
  Removed unused import
  ...
2021-02-18 11:41:34 +01:00
Patrik Oldsberg 021c70d673 Merge pull request #4564 from backstage/rugvip/docker-builds
docker: switch to backend:bundle + update docs with both host and multi-stage build
2021-02-18 11:01:47 +01:00
Fredrik Adelöw 6ebb0b19e9 Merge pull request #4561 from backstage/freben/integrations1
a small start to the integrations section of the config
2021-02-18 09:40:33 +01:00
Ben Lambert 3073771e42 Merge pull request #4518 from backstage/blam/docs-restructure
Rework some of the getting started Docs
2021-02-18 08:59:22 +01:00
Adam Harvey 2691abdd39 Hyphenate word 2021-02-17 23:05:57 -05:00
Adam Harvey ece137bc07 Update design practices 2021-02-17 22:42:02 -05:00
Adam Harvey 0d5a07fe29 Reword e2e-test 2021-02-17 22:37:43 -05:00
Adam Harvey a34578e4d7 Update wording 2021-02-17 22:34:33 -05:00