Roman Hotsiy
e2d0cd5b18
fix: theme improvments by @stasiukanya
...
squashed commit of the following:
commit 6b07dc7fa0
Author: Anya Stasiuk <stasiukanya@gmail.com>
Date: Wed Nov 7 15:18:26 2018 +0200
theme fixes
2018-11-27 12:07:52 +02:00
Roman Hotsiy
f2f6909835
fix: fix spacing with nested markdown lists
...
fixes #718
2018-11-27 11:47:34 +02:00
Roman Hotsiy
155d214509
feat: add support for markdown in Server Object
2018-11-27 11:43:31 +02:00
Roman Hotsiy
3673720497
fix: nested oneOf button spacing
...
fixes #719
2018-11-27 11:36:07 +02:00
Roman Hotsiy
27d195ef38
chore: update styled components typings
2018-11-27 11:28:13 +02:00
TATSUNO Yasuhiro
87fd7d7fdd
feat: Add feature to specify href for logo explicitly ( #645 )
...
Closes https://github.com/Rebilly/ReDoc/issues/627
2018-11-27 11:27:10 +02:00
Roman Hotsiy
e77df0ca07
fix: onLoaded callback not run on spec error
...
fixes #690
2018-11-06 14:09:10 +02:00
lscholten
f40568b79e
feat: Add support for minLength and maxLength constraint humanization ( #700 )
...
According to #42 , `minItems` and `maxItems` are not yet rendered in the documentation.
This pull request shows the humazined form of `minItems` and `maxItems` next to the type description.
The [suggestion of fgabolde](https://github.com/Rebilly/ReDoc/issues/42#issuecomment-371883853 ) is followed and "characters" is simply replaced with "items".
![image](https://user-images.githubusercontent.com/1814807/47999845-0a13f900-e104-11e8-9ddc-adab701ec0bb.png )
Some examples are added to the demo.
2018-11-05 16:14:57 +02:00
Roman Hotsiy
b5f32247be
fix: fix hideHostname also hiding basePath
...
fixes #677
2018-11-05 15:57:01 +02:00
Roman Hotsiy
a69c402d9b
fix: improve scrolling performance in Chrome with non-wrapped json examples
2018-11-05 15:57:01 +02:00
Roman Hotsiy
9a238e75eb
chore: fix lint issue
2018-10-18 14:19:30 +03:00
William Boman
6b7c5b7df3
fix: add null check in dispose method ( #675 )
2018-10-18 14:12:14 +03:00
Roman Hotsiy
ef520eacfa
chore: upgrade to styled-components@4
2018-10-18 12:14:40 +03:00
Roman Hotsiy
00846e1f55
chore: update dev deps
2018-10-18 11:27:28 +03:00
Roman Hotsiy
a4a40135ec
fix: extensionHook not being used
...
fixes #665
2018-10-08 11:54:09 +03:00
Roman Hotsiy
14acab32b2
chore: minor refactor
2018-10-05 16:48:08 +03:00
TATSUNO Yasuhiro
10bca66dce
feat: New option onlyRequiredInSamples ( #646 )
...
* Add onlyRequiredInSamples option that let user to show only required fields in Request samples.
2018-10-05 16:14:40 +03:00
Roman Hotsiy
fbcec82275
fix: minor media print improvements
2018-10-05 15:57:12 +03:00
Roman Hotsiy
393681b99e
feat: turn off code-blocks wrapping
...
Can enable using `typography.code.wrap` theme option, fixes #658
2018-10-05 15:10:53 +03:00
Roman Hotsiy
f39fc98eab
fix: fix panel paddings on small screens
2018-10-05 10:54:15 +03:00
Roman Hotsiy
974bc7ddb0
fix: remove extra-padding caused by empty group sections
2018-10-05 10:49:46 +03:00
Roman Hotsiy
505463f5ab
feat: new theme options spacing-> sectionHorizontal and sectionVertical
2018-10-05 10:49:23 +03:00
Roman Hotsiy
b87cf0d8d5
feat: new option sortPropsAlphabetically
2018-10-04 11:10:37 +03:00
Roman Hotsiy
5924cd7ea2
chore: refactor components parsing in markdown
2018-10-04 10:49:43 +03:00
Roman Hotsiy
3c8d6b623c
chore: fix lint issue + update readme
2018-10-03 11:02:13 +03:00
Ingo Claro
e9610e92d4
feet: add the option to render vendor extensions ( #552 )
...
* add the option to render vendor extensions
* refactor Extensions, move Redoc extension list to utils file
* feat: new option showExtensions (support list of extensions)
2018-10-03 10:02:30 +03:00
Roman Hotsiy
fe3383d1a3
fix: allOf inside oneOf overwritten and not rendered
...
fixes #660
2018-10-01 10:19:26 +03:00
Roman Hotsiy
355764dcd4
fix: server overriding didn't work on Path Item object
...
fixes #656
2018-09-27 18:21:24 +03:00
Roman Hotsiy
cb79271ae4
chore: render section instead of throw
2018-09-14 09:55:02 +03:00
Roman Hotsiy
cbc9eab00a
chore: minor fix after dense->compact rename
2018-09-10 18:41:36 +03:00
Matthias Mohr
893c83ed07
feat: externalDocumentation rendered for tags, operations and schema fields ( #595 )
...
The externalDocs were missing for tags, schemata and operations. Added them with this pull requests. Solves #550 .
Additionally, fixes that the URL in External Documentation Object was specified to be optional, which is not correct according to OpenAPI spec.
2018-09-10 18:23:17 +03:00
Fredrik Lengstrand
4b3b5ba974
fix: Increase badge size slightly so that "PATCH" method fits inside ( #632 )
2018-09-05 09:44:47 +03:00
Roman Hotsiy
0dd1c800c1
chore: update deps + fix deprecation warnings
2018-08-24 12:27:53 +03:00
Roman Hotsiy
81c0df092a
chore: add tests for one of titles
2018-08-24 12:27:53 +03:00
Roman Hotsiy
865f3ced4b
fix: addd indent to array schema internals
2018-08-24 12:27:53 +03:00
Roman Hotsiy
39b930d0ee
fix: fix oneOf/anyOf titles
...
fixes #618 , #621
2018-08-24 12:27:53 +03:00
Roman Hotsiy
1ba8a4cf7b
chore: remove class active from group items + fix e2e tests
2018-08-22 13:22:58 +03:00
Roman Hotsiy
c8b7eed7f0
chore: add sql-syntax for prism.js
2018-08-22 12:47:35 +03:00
Roman Hotsiy
720e28284c
fix: do not inherit title in allOf
...
fixes #601
2018-08-22 12:27:13 +03:00
Roman Hotsiy
fb212128f9
fix: fix crash on empty media object
...
fixes #608
2018-08-22 12:25:02 +03:00
Roman Hotsiy
5d84bd4656
fix: make http badges font-based instead of inline png
2018-08-19 16:50:15 +03:00
Roman Hotsiy
528b8fbebc
chore: prettier all
2018-08-18 16:23:33 +03:00
Roman Hotsiy
3ccc9c4ea6
chore: update to typescript@3
2018-08-17 16:57:32 +03:00
Roman Hotsiy
b9c1b49810
chore: minor fixes after refactor
2018-08-17 15:01:18 +03:00
Roman Hotsiy
43a22f5531
chore: refactor links
2018-08-17 14:54:28 +03:00
Roman Hotsiy
cfddb3afe1
chore: refactor HistoryService
2018-08-17 14:50:58 +03:00
Roman Hotsiy
d3d35189f5
chore: refactor, move allowedMdComponents to options
2018-08-17 14:41:22 +03:00
Roman Hotsiy
f903406c14
fix: use correct parent section for security definition
2018-08-17 14:20:02 +03:00
Roman Hotsiy
4ef4a971ce
chore: unify parsing components in md
2018-08-16 12:37:39 +03:00
Roman Hotsiy
0cf7191144
chore: various small refactorings
2018-08-16 12:36:51 +03:00
Roman Hotsiy
eae11682b8
chore: sections/markdown refactor
2018-08-16 09:56:47 +03:00
Roman Hotsiy
8218a2694d
fix: broken rendering of code blocks with language in markdown
2018-08-11 23:15:05 +03:00
Roman Hotsiy
e660517a2a
fix: broken rendering of headings with regexp characters
2018-08-11 23:14:09 +03:00
Roman Hotsiy
d13fe13eb8
fix: fix auth requirements font size
2018-08-09 08:53:35 +03:00
Roman Hotsiy
58ae668f64
fix: crash on any backticks code block without lang specified
2018-08-09 08:44:01 +03:00
Roman Hotsiy
334f9047a8
fix: download button downloads index.html instead of spec with CLI
...
fixes #594
2018-08-08 12:03:55 +03:00
Roman Hotsiy
23559fbece
fix: preserve md heading level in description
2018-08-08 11:42:07 +03:00
Roman Hotsiy
97e16208d5
fix: schemes without type: object are not expandable
...
fixes #599
2018-08-08 11:41:53 +03:00
Roman Hotsiy
597688e720
fix: add some spacing between operation description and parameters
2018-08-07 18:08:43 +03:00
Roman Hotsiy
9e69eedea0
chore: fix lint issues in tests
2018-08-07 18:08:43 +03:00
Roman Hotsiy
90ed717bb5
fix: description is not rendered if doesn't containt markdown headings
...
fixes #591
2018-08-07 18:08:43 +03:00
Roman Hotsiy
2ecc8bc58e
fix: fix Authentication section is not rendered
...
fixes #590
2018-08-07 18:08:43 +03:00
Roman Hotsiy
8fb9cd6bac
fix: fix linebreaks in multiparagraph field descriptions
2018-08-07 18:08:43 +03:00
Matthias Mohr
f70ac081fe
fix: render additionalProperties set to true ( #597 )
...
fixes #596
2018-08-07 13:02:39 +03:00
Sheila Kelly
568ce74077
feat: Add x-logo alt text support ( #584 )
...
Fixes #546
2018-08-02 15:27:38 +03:00
Roman Hotsiy
00bd966797
feat: support label for x-code-samples
...
fixes #586
2018-08-01 10:20:16 +03:00
Roman Hotsiy
7a35a4d0de
chore: tests crash fix after refactor
2018-07-31 16:58:44 +03:00
Roman Hotsiy
ba22b1e352
fix: show examples for response headers
...
fixes #575
2018-07-31 16:55:06 +03:00
Roman Hotsiy
15dfe44d4e
fix: allow word-break in code strings in md
2018-07-31 16:45:56 +03:00
Roman Hotsiy
d99e9188fd
fix: long endpoint url overflow
2018-07-31 16:14:12 +03:00
Roman Hotsiy
a4f79bf8c2
chore: refactor, separate active and expanded state for menu items
2018-07-31 15:55:35 +03:00
Roman Hotsiy
5ebab5f942
chore: perfect scrollbar wrapper to maintain initial offset
2018-07-31 15:36:30 +03:00
Roman Hotsiy
35ba10f759
chore: refactor, unify markdown headings
2018-07-31 15:35:35 +03:00
Roman Hotsiy
d731518c8c
chore: refactor, rename StoreProvider to StoreBuilder
2018-07-30 12:51:50 +03:00
Roman Hotsiy
873fe05a5d
chore: SideMenu accept className
2018-07-26 18:00:30 +03:00
Roman Hotsiy
d74578dc9b
fix: remove break-all from code samples
2018-07-26 17:51:47 +03:00
Roman Hotsiy
9361ead8c4
chore: refactor, simplify AppStore
2018-07-26 17:51:10 +03:00
Roman Hotsiy
f96c481b34
fix: wrong display when combining multiple auth requirements
...
fies #577
2018-07-25 13:11:26 +03:00
Roman Hotsiy
b5d0aca9ae
chore: fix lint issues
2018-07-23 13:22:24 +03:00
Roman Hotsiy
9d6b30c55a
feat: simple variable substitution support
...
fixes #565
2018-07-23 12:00:30 +03:00
Roman Hotsiy
59e05fbe75
chore: fix typo SecurityRequirement
...
fixes #571
2018-07-23 11:20:56 +03:00
Roman Hotsiy
21f34b1e59
chore: minor typings fix
2018-07-23 11:19:13 +03:00
Roman Hotsiy
2ff726649c
chore: run prettier
2018-07-23 11:17:31 +03:00
Roman Hotsiy
b41b181dd0
fix: server url contains spec name if not specified in the spec
2018-07-23 11:16:54 +03:00
Roman Hotsiy
cbfc226fa9
chore: minor css improvements
2018-07-19 17:12:31 +03:00
Roman Hotsiy
8c9304a719
Fix: unify code samples and json styling, stop using injectGlobal for prism
...
fixes #491
2018-07-19 17:07:11 +03:00
Roman Hotsiy
58bddc8811
feat: big theme update
2018-07-19 14:33:51 +03:00
Roman Hotsiy
7e5b6d9029
fix: properly host oneOf inside allOf
...
fixes #507
fixes #528
2018-07-18 13:03:42 +03:00
Roman Hotsiy
89aa754063
fix: different output of cli bundle and redoc
...
fixes #547
2018-07-18 11:51:34 +03:00
Roman Hotsiy
dcca44a92d
fix: fix non-scalar query/path/header params are not expandable
...
fixes #561
2018-07-17 15:50:14 +03:00
SeungWoon Maz Lee
8817d9c9db
fix: use original tag name when slugified one is not valid ( #553 )
...
* use original tag name when slugified one is not valid
* use wrapper function when using slugify
2018-07-17 15:21:03 +03:00
Roman Hotsiy
c35925a332
fix: fix Download button url when spec as object was provided
...
+ do not output huge base64 encoded link when SSR, instead use button handler
fixes #462
related #540
2018-07-17 12:22:27 +03:00
Roman Hotsiy
edc77a2017
chore: update ts and enable noUnusedLocals
2018-07-17 12:15:22 +03:00
Roman Hotsiy
d4ab5adc17
feat: new option disableSearch
2018-07-17 11:07:49 +03:00
Roman Hotsiy
c7b3e47366
chore: remove unused imports after fix in TS@2.9.1
2018-07-16 18:28:36 +03:00
Roman Hotsiy
c0c44bc4fe
fix: regression - broken urls for operations without operationId
2018-07-14 18:16:35 +03:00
Roman Hotsiy
9f0252e12e
chore: update security-requirement ui
2018-07-14 17:11:29 +03:00
Roman Hotsiy
e6ebdb7095
chore: refactor MediaTypesSwitch
2018-07-14 16:37:36 +03:00
Roman Hotsiy
e1c9e19fbc
fix: inline markdown regression
2018-06-30 00:41:31 +03:00
Roman Hotsiy
55bd8535b4
feat: theme hooks experimental hooks
2018-06-29 23:49:53 +03:00