Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Update campaign docs to include examples and YAML reference#13638

Merged
mrnugget merged 6 commits into
mainfrom
mrn/add-campaign-docs-examples
Sep 4, 2020
Merged

Update campaign docs to include examples and YAML reference#13638
mrnugget merged 6 commits into
mainfrom
mrn/add-campaign-docs-examples

Conversation

@mrnugget

@mrnugget mrnugget commented Sep 4, 2020

Copy link
Copy Markdown
Contributor

This adds back the examples we previously had, adopted to the new campaign specs.

Where and how the examples are referenced follows what was proposed in https://github.com/sourcegraph/sourcegraph/pull/10921 but temporarily removed.

Edit:

It also does a bunch of other things, like making the wording clearer, etc.

This adds back the examples we previously had, adopted to the new
campaign specs.

Where and how the examples are referenced follows what was proposed in
sourcegraph/sourcegraph#10921 but temporarily
removed.
@mrnugget mrnugget requested review from a team and kghopson and removed request for a team September 4, 2020 09:21
@mrnugget mrnugget changed the title Add examples to campaign docs Update campaign docs to include examples and YAML reference Sep 4, 2020
@mrnugget

mrnugget commented Sep 4, 2020

Copy link
Copy Markdown
Contributor Author

Alright, I also played "JSON schema to Markdown" converter and created the campaign spec YAML reference that was proposed in #10921.

Yes, there's duplication between this handwritten markdown file and the campaign-spec.schema.json, but before we get a "JSON schema to Markdown" converter tool that produces readable (!) output, this is fine.

@codecov

codecov Bot commented Sep 4, 2020

Copy link
Copy Markdown

Codecov Report

Merging #13638 into main will increase coverage by 9.32%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main   #13638      +/-   ##
==========================================
+ Coverage   44.34%   53.67%   +9.32%     
==========================================
  Files         747     1347     +600     
  Lines       21959    79184   +57225     
  Branches     6748     5302    -1446     
==========================================
+ Hits         9737    42499   +32762     
- Misses      12168    33125   +20957     
- Partials       54     3560    +3506     
Flag Coverage Δ
#go 52.71% <ø> (?)
#integration 29.60% <ø> (ø)
#storybook 15.80% <100.00%> (ø)
#typescript 56.85% <100.00%> (+12.51%) ⬆️
#unit 55.31% <ø> (+23.87%) ⬆️
Impacted Files Coverage Δ
...enterprise/campaigns/create/CreateCampaignPage.tsx 100.00% <100.00%> (ø)
web/src/enterprise/productSubscription/helpers.ts 0.00% <0.00%> (-100.00%) ⬇️
web/src/components/HeroPage.tsx 12.50% <0.00%> (-87.50%) ⬇️
web/src/search/FilterChip.tsx 0.00% <0.00%> (-76.00%) ⬇️
web/src/site/LicenseExpirationAlert.tsx 25.00% <0.00%> (-75.00%) ⬇️
web/src/views/ViewContent.tsx 13.33% <0.00%> (-73.34%) ⬇️
web/src/extensions/extension/extension.ts 0.00% <0.00%> (-72.98%) ⬇️
web/src/settings/configuration.ts 27.27% <0.00%> (-72.73%) ⬇️
web/src/global/Notices.tsx 38.09% <0.00%> (-57.15%) ⬇️
web/src/components/ErrorBoundary.tsx 38.09% <0.00%> (-52.39%) ⬇️
... and 1044 more

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! That reads very well, easy to understand :)

Comment thread doc/user/campaigns/examples/updating_go_import_statements.md

@kghopson kghopson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I was able to follow along, so that's always a good indicator

@mrnugget mrnugget merged commit de9a55a into main Sep 4, 2020
@mrnugget mrnugget deleted the mrn/add-campaign-docs-examples branch September 4, 2020 15:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants