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

Move guides to new docs site #2740

Merged
merged 5 commits into from
May 28, 2018
Merged

Move guides to new docs site #2740

merged 5 commits into from
May 28, 2018

Conversation

jgayfer
Copy link

@jgayfer jgayfer commented May 18, 2018

This PR depends on #2739

This PR moves all of the existing documentation to the new docs site.

There are a few changes that had to be made to the docs in order to have them play nice with Middleman.

  • Change the extension of each document from .md to .html.md
  • Change relative links in each document from .md to .html

Other than what is mentioned above, there are no changes made to the docs themselves. The goal was to keep the docs as pure markdown to ensure they remain platform agnostic should they be used in a different capacity in the future.

)
end
end
end

Choose a reason for hiding this comment

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

Layout/TrailingBlankLines: Final newline missing.

file = File.open(asset, 'r') { |f| f.read }
# we pass svg-targeting css classes through here, ex. .svg-color--blue. The class targets fill, stroke, poly, circle, etc.
css_class = options[:class]
aspect_ratio = options[:preserveAspectRatio]

Choose a reason for hiding this comment

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

Lint/UselessAssignment: Useless assignment to variable - aspect_ratio.

def inline_svg(filename, options = {})
asset = "source/assets/images/#{filename}"

if File.exists?(asset)

Choose a reason for hiding this comment

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

Lint/DeprecatedClassMethods: File.exists? is deprecated in favor of File.exist?.

@@ -0,0 +1,51 @@
# Middleman - Inline SVG Helper

Choose a reason for hiding this comment

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

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

cls = ""
end
end
return cls

Choose a reason for hiding this comment

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

Style/RedundantReturn: Redundant return detected.

def nav_inactive(paths)
cls = "no-active"
paths.each do |path|
if(current_page.path.start_with? path)

Choose a reason for hiding this comment

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

Layout/SpaceAroundKeyword: Space after keyword if is missing.

@@ -0,0 +1,37 @@
module CustomHelpers
def full_title(page_title=nil, site_title)

Choose a reason for hiding this comment

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

Style/OptionalArguments: Optional arguments should appear at the end of the argument list.
Layout/SpaceAroundEqualsInParameterDefault: Surrounding space missing in default value assignment.

@@ -0,0 +1,37 @@
module CustomHelpers

Choose a reason for hiding this comment

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

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

guides/config.rb Outdated

def discover_title(page = current_page)
page_title = current_page.data.title || retrieve_page_header(page)
category = page.path[/\/(.*?)\/.*\.html/, 1]&.gsub('-', ' ')&.capitalize

Choose a reason for hiding this comment

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

Lint/Syntax: unexpected token error

guides/Gemfile Outdated
@@ -0,0 +1,8 @@
source "https://rubygems.org"

Choose a reason for hiding this comment

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

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

# frozen_string_literal: true

module CustomHelpers
def full_title(site_title, page_title=nil)

Choose a reason for hiding this comment

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

Layout/SpaceAroundEqualsInParameterDefault: Surrounding space missing in default value assignment.

@jgayfer jgayfer force-pushed the move_docs branch 2 times, most recently from 81d257d to 3e2fcae Compare May 18, 2018 22:17
@kennyadsl
Copy link
Member

I merged a PR on guides (#2742) 😬 . Can you please rebase against master?

@jgayfer
Copy link
Author

jgayfer commented May 23, 2018

@kennyadsl Done!

@tvdeyen
Copy link
Member

tvdeyen commented May 24, 2018

@jgayfer #2739 has been merged.

@jgayfer jgayfer force-pushed the move_docs branch 3 times, most recently from 0131474 to c625895 Compare May 24, 2018 17:20
@jgayfer
Copy link
Author

jgayfer commented May 24, 2018

@tvdeyen I've rebased against master

@tvdeyen
Copy link
Member

tvdeyen commented May 28, 2018

@jgayfer thanks. This needs another rebase after we merged #2747

James Gayfer added 5 commits May 28, 2018 09:53
The docs index wasn't meant to be a long term solution; it was a means
to aid in navigating the docs while on GitHub. Since the docs will now
live in their own site, there won't be a need to navigate the docs on
GitHub.
This is a requirement of Middleman, the platform the docs site is built
on. Otherwise, we can't generate HTML from the markdown.
This change allows for relative links to work in the context of the docs
site.
This change keeps the original top level file/directory names as we
had previously.
@jgayfer
Copy link
Author

jgayfer commented May 28, 2018

@tvdeyen Rebased

@tvdeyen tvdeyen merged commit 185344d into solidusio:master May 28, 2018
@tvdeyen
Copy link
Member

tvdeyen commented May 28, 2018

Thanks!

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.

None yet

4 participants