Commit Graph

96 Commits

Author SHA1 Message Date
blam 101978963d Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (139 commits)
  Cleanup
  Update PinButton.test.tsx
  feat: update github insights plugin version (#2973)
  Ignore IntelliJ *.iml files (#2971)
  chore(deps): bump rollup-plugin-dts from 1.4.11 to 1.4.13
  fix the plugin card on plugins page
  align 'Add to Marketplace' button on plugins page
  fix the PluginGrid on mobiles sizes
  use getBy query instead of queryBy when asserting for elements present in document (#2951)
  Update PinButton.tsx
  Add test case for Progress component (#2953)
  fix the styling of footer copy on mobile
  add changeset
  handle the case where no entities are available to show
  core-api: work around issue with ApiRef export const declarations
  core-api: move utility api system implementation into apis/system
  Update docs regarding npm config ignore-scripts flag
  Another try
  Fix Core Features configuration id (#2948)
  Fix test?
  ...
2020-10-19 23:57:40 +02:00
Abhishek Jakhar 782f3b3541 Add test case for Progress component (#2953)
* remove data-testid from div

* add test case for Progress component

* add changeset

* update the GraphiQLPage test cases to handle Progress timeout

* update the RadarComponent and RadarPage test case to handle Progress timeout

* update the TechDocsProgressBar test case to handle Progress timeout

* add changeset
2020-10-19 10:33:30 +02:00
Patrik Oldsberg 5ff5b1325d Merge pull request #2739 from Marvin9/feat/flexible-theme-for-page
feat: theme customization for pages
2020-10-16 12:47:05 +02:00
Marvin9 8f0608a5ed chore: refactor 2020-10-15 09:16:39 +05:30
Eric Nilsson 08f5e0311f TechDocsPageHeader: Changed repo location icon (#2895) 2020-10-14 11:03:41 +02:00
blam e44cb85b22 Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (66 commits)
  chore: fix lerna linting
  v0.1.1-alpha.25
  Add Code Insights plugin to sample app and marketplace (#2833)
  Improve main CI build status badge in README (#2866)
  Update roadmap: Design System 🚢 (#2858)
  github/codecov: switch to informational mode
  github/workflows: use the tip of master as the base for comparing PR code coverage
  make saml provider path from globalConfig (#2855)
  fix(catalog-backend): limit search value lengths
  Update project Copyright (#2852)
  fix(catalog-backend): actually use modified entity output (default namespace was broken)
  remove unnecessary center keyword
  Move card header bg to up contrast, fix #2558
  Update name of env authentication env vars
  Fix feedback from dtuite
  Remove chart testing workflow for now
  Only lint charts on Pull Requests
  Move the k8s deployment docs to its own helm deployment page
  Remove line in initdb script that creates backend db
  Use app-config.development.yaml to provide configuration instead of local
  ...
2020-10-13 03:56:13 +02:00
Marvin9 6e3ba7c2c4 chore: resolve conflicts 2020-10-11 19:19:35 +05:30
Marvin9 6d68f6fec1 feat: consume theme provided by Page theme provider 2020-10-11 19:14:23 +05:30
Stefan Ålund 8d666e43bd Use MissingAnnotationEmptyState for plugins (#2824) 2020-10-09 15:11:15 +02:00
blam b33353dd39 Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (110 commits)
  chore(catalog-backend): removing redudant classes and some functions
  chore(deps-dev): bump @types/webpack from 4.41.21 to 4.41.22 (#2765)
  move codecov.yml to .github
  feat(catalog-backend): add batch concurrency
  create-app: remove build step
  cli: simplify jest transform ignore regex
  feat(catalog-backend): introduce batching, speed up reading and writing of large datasets
  Techdocs: add Azure DevOps prepare support (#2748)
  feat(techdocs-header): Show breadcrumbs on docs page (#2786)
  changesets: add entry for create-app template location fix
  create-app: revert to github location type for example templates
  fix: make catalog filter work again
  Use new url scheme for techdocs
  feat: remove LocationProcessor.processEntity
  Add Dockerfile for helm chart
  feat: use the new UrlReader in the CodeOwnersProcessor
  feat: use new UrlReader in PlaceholderProcessor
  feat: remove the backstage.io/definition-at-location annotation
  Update loud-lamps-visit.md
  feat(proxy-backend): limit the forwarded http headers to a safe set
  ...
2020-10-09 14:48:32 +02:00
blam a0604474c1 chore: removing the last of the deps in the plugins 2020-10-09 13:49:10 +02:00
Himanshu Mishra c852e7b09d Merge pull request #2812 from spotify/sebastianq/techdocs-new-component-url
[TechDocs] Use new url scheme for techdocs
2020-10-09 10:41:47 +02:00
Mahmood Hosseini 4295a248e9 feat(techdocs-header): Show breadcrumbs on docs page (#2786) 2020-10-08 23:26:41 +02:00
Sebastian Qvarfordt ae499a55ff Use new url scheme for techdocs 2020-10-08 16:59:30 +02:00
Sebastian Qvarfordt 29ec8c2f09 TechDocs: Fix reload when clicking internal docs pages (#2784)
* Check to see if links start with window.location.origin to see if we should handle it as a internal docs link

* Fixed failing test

* Fix lint issues
2020-10-08 11:26:46 +02:00
Marvin9 7db0ffb6e5 feat: add rel to <a> & few <Link> tags 2020-10-06 21:19:31 +05:30
Marvin9 e2564645e5 feat: Replace old page theme props with new ones 2020-10-04 18:03:50 +05:30
Emma Indal 497675538c TechDocs: browse metadata (#2682)
* feat(techdocs): TechDocsPageWrapper to take in labels prop and use TechDocsHeader component

* feat(techdocs): new TechDocsHeader component as wrapper around Header from core

* feat(techdocs): TechDocsPage metadata

* feat(techdocs): TechDocsMetadata class responsible for reading metadata from generated techdocs metadata json file

* fix(techdocs): delete TechDocsPageWrapper component

* fix(app-config): delete /docs from request url

* feat(techdocs): TechDocsHeader with labels to browse metadata

* fix(techdocs): move metadata to backend plugin

* feat(techdocs-backend): introduce two new metadata routes

* feat(techdocs): new techdocs api to be responsible to request metadata from backend

* feat(techdocs): register new api for plugin

* fix(techdocs): reader to take in onReady prop

* fix(techdocs): TechDocsHome component to use its own header

* fix(techdocs): TechDocsPage responsible to get metadata and pass it down to the TechDocsHeader

* fix(techdocs): component tests for both TechDocsHeader and TechDocsPage

* fix(techdocs): adjust api to use /docs in url since it was taken away in requestURL

* fix(tests): move assertion into act

* fix(techdocs): rename TechDocsHeader to TechDocsPageHeader

* fix(techdocs): rename TechDocsHeader to TechDocsPageHeader

* fix(techdocs-backend): add some logs

* Update plugins/techdocs/src/reader/components/TechDocsPage.test.tsx

* delete unused import
2020-10-01 10:12:24 +02:00
Navaneeth Suresh e85030902f Add a message if techdocs takes long time to load 2020-09-26 21:49:49 +05:30
Sebastian Qvarfordt 19e34b5319 TechDocs: Inject CSS transformer and initial backstage style integration for reader (#2560)
* Inject CSS transformer and initial backstage style integration for reader

* Update plugins/techdocs/src/reader/transformers/injectCss.test.ts

Co-authored-by: Emma Indal <emmai@spotify.com>

* Fix test name and run injectCss in preTransformer

* Fix for invisible links in reader

* Added missing semi-colon

* Better styling on codeblocks

Co-authored-by: Emma Indal <emmai@spotify.com>
2020-09-23 16:40:18 +02:00
Sebastian Qvarfordt 999ff914af TechDocs: Enable allowVulnerableTags in sanitize-html (#2554)
* enable allowVulnerableTags in sanitize-html

* Fixed lint issue

* Removed style tag from allowed list. Seems to work fine.

* Added tests to make sure we keep link tags and remove style tags
2020-09-22 14:22:52 +02:00
Emma Indal 296b6376e3 fix unclickable external links (#2396) 2020-09-10 12:05:22 +02:00
Sebastian Qvarfordt d865f88344 [TechDocs] Rebuild docs if the github source is newer than last docs build (#2353)
* Added age check for documentation in github to make sure it's up to date

* Updated failing tests

* Updated docs to explain requestUrl and storageUrl

* Updated failing tests

* Update packages/create-app/templates/default-app/app-config.yaml.hbs

* Update docs/features/techdocs/getting-started.md

Co-authored-by: Emma Indal <emmai@spotify.com>
2020-09-09 16:05:28 +02:00
alandovskis f88d8873a8 Display Warning if TechDocs Annotation is Missing (#2319)
* Display warning if TechDocs annotation is missing.

* TechDocs: Add link to Getting Started when annotation is missing.
2020-09-09 08:52:36 +02:00
Patrik Oldsberg 38b6703102 core-api: change ApiFactory.implements to .api 2020-09-08 11:31:48 +02:00
Patrik Oldsberg aa235dd154 app: move api factories out to plugins 2020-09-08 11:31:47 +02:00
Emma Indal 969cf48858 [TechDocs] migrate techdocs to use new routing/catalog api (#2312)
* migrate techdocs to use new routing

* use new techdocs routing in default app

* new EntityPageDocs and Router components

* remove unused code

* remove unused import
2020-09-07 16:56:03 +02:00
Patrik Oldsberg b045b166b6 run prettier 2020-09-05 16:37:30 +02:00
Sebastian Qvarfordt 0b2f787699 Updated docs for techdocs plugin (#2127)
* Updated docs for techdocs plugin

* Error in example comment

* Update plugins/techdocs/README.md

Co-authored-by: Emma Indal <emmai@spotify.com>

* Update plugins/techdocs/src/reader/README.md

Co-authored-by: Emma Indal <emmai@spotify.com>

* Update plugins/techdocs/src/reader/README.md

Co-authored-by: Emma Indal <emmai@spotify.com>

* Update plugins/techdocs/src/reader/README.md

Co-authored-by: Emma Indal <emmai@spotify.com>

* Update link to transformers doc to point to reader doc for now

Co-authored-by: Emma Indal <emmai@spotify.com>
2020-08-27 09:52:49 +02:00
Sebastian Qvarfordt 5bf548ac80 Show progress bar when loading on techdocs (#2065) 2020-08-21 10:31:30 +02:00
Sebastian Qvarfordt 13908d69c2 TechDocs: Access entity techdocs from service catalog (#1835)
* feature(techdocs): JIT generation of techdocs

* Fix linting issues

* Add Techdocs tab to entity page

* Added missing dep

* Added missing dep

* Removed duplicate dep

* Better tab navigation

* Update label on entity page to say docs

* Fix lint issue

* Move building of docs from entity to a function

* feature(techdocs): JIT generation of techdocs

* Fix linting issues

* Add Techdocs tab to entity page

* Added missing dep

* Added missing dep

* Removed duplicate dep

* Better tab navigation

* Update label on entity page to say docs

* Fix lint issue

* Move building of docs from entity to a function

* attempt to add back react as a dep

* Fixed failing test

* fix(techdocs): Hopefully fixed tests

* Fixed another failing test

* Initial apiRef for techdocs storage

* Cleaned up some code in reader

* test(headertabs): add tests to HeaderTabs component

* fix(headertabs): change tab mock id

* fix(techdocs-generator): fix problem with macOS symlink to tmp folder

* fix(lint): remove unused configApiRef

* wip

* Ongoing cleanups

* Cleanups and fix tests

* WIP cleanups

* Clean up some things

* Clean up some things

* Added missing notice header

* ts issue fixed

* Add show contition to api tab

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Emma Indal <emmai@spotify.com>
2020-08-20 14:06:09 +02:00
Patrik Oldsberg f69a2804ae docs: fix broken links 2020-08-11 12:21:15 +02:00
Sebastian Qvarfordt fe4430907a Merge pull request #1787 from DavidJSykes/Fix-TechDocs-missing
Fix tech docs missing #1750
2020-07-30 19:32:45 +02:00
David J Sykes cc905069d1 Changed optional parameter name to allow for more generic uses 2020-07-30 16:57:38 +01:00
David Sykes 58fa8ce5fb Updated test 2020-07-30 11:35:01 +01:00
David Sykes 4f54f062fe Updated test 2020-07-30 11:31:26 +01:00
David Sykes ea57820c62 Removed a div that was no longer needed 2020-07-30 11:30:01 +01:00
David Sykes fa708d6572 TechDocsNotFound now uses ErrorPage from core with an optional docPath parameter 2020-07-30 11:19:12 +01:00
Twisha Saraiya 5749c98e3f techdocs: modify documentation header 2020-07-30 14:45:21 +05:30
Emma Indal 166998b6d9 fix(techdocs-not-found): bug fix 2020-07-27 09:17:00 +02:00
Stefan Ålund 982bacb167 [TechDocs] Use Backstage docs as example (#1625) 2020-07-15 08:02:01 +02:00
Bilawal Hameed 3d4fcc4559 techdocs: set custom docStorageUrl via appConfig (#1575)
* feat(techdocs): read docStorageUrl from appConfig

* docs: updated techdocs plugin README to mention custom baseurl

* fix: added config file

* fix: use JSON in env variable

* fix: add to app-config.yaml

* typescript wrestling

* Nicer config handling

* fix: switch to using useApi(configApiRef)

* docs: corrected to new config name

* docs: mention app-config.yaml config option

* fix: removed unused dep @backstage/config

Co-authored-by: Sebastian Qvarfordt <s.qvarfordt@gmail.com>
2020-07-10 10:48:46 +02:00
Sebastian Qvarfordt 9fa773d571 Hack to fix typescript error in dependency. PR sent, and this fixes it temporarily. 2020-07-07 11:14:20 +02:00
Emma Indal f86715ae3d fix(techdocs): move from post transformers to pre transformers 2020-07-06 19:52:05 +02:00
Emma Indal 18e9dac360 fix(techdocs): adjust test to use post and pre transformers 2020-07-06 19:52:05 +02:00
Emma Indal 7f00b29ea2 feat(techdocs): sanitizeDOM transformer 2020-07-06 19:52:04 +02:00
Bilawal Hameed 9a3b6d50fe fix: cast as HTMLElement 2020-07-06 14:29:28 +02:00
Bilawal Hameed 180a08a5ec chore: use onLoading and onLoaded 2020-07-06 14:24:23 +02:00
Bilawal Hameed 1040383d36 chore: added stylesheet test-util + split out shadow-dom test util 2020-07-06 14:08:38 +02:00
Bilawal Hameed 04067f24f0 chore: add onCssReady tests 2020-07-06 14:08:38 +02:00