Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/heading safe guard #179 #188

Merged

Conversation

jsmartfo
Copy link
Contributor

Based off the discussion here #179, adding logic to check if no heading-1 present then reassign the heading-2 to be heading-1.

This allows code to continue without error.

Another variation on this would be to leave the heading-2 the user defined but also create a heading-1 in the background this would however lead to a slight dupe within the menu and docs.

RomanHotsiy and others added 3 commits January 28, 2017 21:23
…x/heading to bugfix/heading-safe-guard

* commit '47c80f60bae648dcaaa5191841eff07b4b0b5696':
  fix(heading): fix for headings render making failsafe, adding test, adjusting some commentary and spelling/typos
@RomanHotsiy
Copy link
Member

@jsmartfo thanks for PR. But I've been working on search for ReDoc in another branch and have already refactored that peace of code. Sorry for not letting you know..
But you added a tests so I will merge your PR to keep tests.
If you have some time would be great if you can rebase this PR on redoc-search.
If you don't, I will do it myself.

@RomanHotsiy RomanHotsiy changed the base branch from master to redoc-search February 1, 2017 22:14
@RomanHotsiy RomanHotsiy merged commit 6a10f49 into Redocly:redoc-search Feb 1, 2017
@RomanHotsiy
Copy link
Member

RomanHotsiy commented Feb 1, 2017

@jsmartfo thank you!
I have changed base of this PR from master to redoc-search.
The plan is to merge redoc-search into master and release a new version to the end of this week.

@jsmartfo
Copy link
Contributor Author

jsmartfo commented Feb 2, 2017

Appreciate you taking some of it anyway! Will look to help out more in the future, hope that's okay? Great project

@RomanHotsiy
Copy link
Member

RomanHotsiy commented Feb 2, 2017

Will look to help out more in the future, hope that's okay?

Would be awesome! Thanks for offering help here 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants