Giter VIP home page Giter VIP logo

docs's Introduction

Vanilla Docs

Open Issues Pull Requests

Contributing

If you find any problems in the docs or have a question, open an issue. Please submit edits & additions as pull requests against master.

Organization

All docs belong in the content folder, with further subdivisions based on the type of the document. Picking the right location for your docs is important.

The content/help folder is for all users of Vanilla Forums. Descriptions may include services and features specific to the vanillaforums.com cloud.

The content/developer folder is for all technical documentation. This is targetted at developers that are perhaps implementing their own code solutions. These docs may include descriptions of solutions that are not possible or disallowed on VanillaForums.com cloud. Clients of VanillaForums.com should consult support or their customer success manager for guidance.

The content/api folder is for API documentation and api-related information (such as Smart ID and how it works).

Formatting

  • Every doc file must end in .md and be formatted in Markdown.
  • DO NOT put secondary filenames, such as .html.md
  • Use H2 (## in Markdown) for major sub-topics and H3 (###) for minor headings.
  • Document H1 tags are automatically generated, so don't add your own.
  • All images go within static/img and must be referenced absolutely (/img/foo.png).
  • Images may be deeply nested for organizational purposes.
  • Use descriptive image names that include their topic area and what they depict, and hyphenate-the-names.png.

Writing

  • Be brief but clear.
  • Carefully consider organization.
  • Cross-reference with links liberally.
  • Break up long sentences and paragraphs.

Porting docs

  • If you're moving a doc from an old site to this one, use aliases. Aliases make Hugo redirect old content to the new location
  • If the content is NEW, do not supply any aliases

Structure

  • Consciously build menus using the front-matter

Versioning

We've got a feature to add versioning to the docs.

Versioning the Page

In the "front matter" section, add the following:

versioning:
  added: 2.0
  deprecated: 2.1
  removed: 2.3

This will set the versioning info right under the page title. Only add the info you need. So for example, if a feature has been added and is not deprecated, you'd enter:

versioning:
  added: 2.0

Versioning a section

If you do not wish to version the entire page, you can insert a shortcode anywhere in your markdown file to add versioning.

Here's an example:

{{% versioning added="2.0" deprecated="2.1" removed="2.3" %}}

Only add the info you need. So for example, if a feature has been added and is not deprecated, you'd enter:

{{% versioning added="2.0" %}}

Technical Setup

These documents are built using the Hugo static site generator. The content is formatted in Markdown and the templates use the Go html/template library. The generator supports both partials and shortcodes (partials that can be used in the content too).

This repository uses Grunt to automate the build and editing processes. Grunt and its various plugins and dependencies (including Hugo itself) are installed using Yarn.

The docs themselves are published to GitHub Pages and live at http://docs.vanillaforums.com.

How to get started

Installing the project locally

  1. Make sure you have yarn installed:
    • OS X: $ brew install yarn
    • Windows: ???
  2. Fork or clone the repository (depending on whether you have commit access)
  3. Install Hugo v0.29. The site does not currently function properly with newer versions of hugo.

The download can be found on hugo's release page. Unzip the archive for your platform copy it into a directory on your path. For Mac users the download should be hugo_0.29_macOS-64bit.tar.gz and a common folder on the path is /usr/local/bin.

https://github.com/gohugoio/hugo/releases?after=v0.30

  1. From the root of the folder, use yarn to install the project dependancies: $ yarn install

That should be it, you now have a working copy of the docs.

Live Editing

The docs can be viewed live while you edit them, which makes writing new content really easy.

Simply enable editing mode: $ yarn run edit You should now have a locally accessible webserver providing the docs site at http://127.0.0.1:1313. This site should be livereload-enabled, so changes you make locally should trigger a page reload on the site. Now create some docs!

Submitting your changes

When you're done writing docs or making edits, just create a pull-request against master and wait for your content to be merged and published!

Publishing (for maintainers)

Publishing is easy. Just commit your changes to master and wait for them to be automatically deployed to staging. Commit changes to deploy for them to be deployed to production. DO NOT MANUALLY DEPLOY THIS REPOSITORY. You'll break it.

Troubleshooting

"-bash: grunt: command not found" error? Try npm install -g grunt-cli.

"Warning: Error: not found: hugo Use --force to continue." error? Try brew install hugo.

"Warning: Task "sass" not found. Use --force to continue." error? Try npm install -g node-sass. Still a problem or already had that? Maybe try npm rebuild node-sass.

Regression testing

Making larges refactors to the docs? When you're done run yarn links:test to test that every previously accessible link is still accessible. If you add new pages run yarn links:generate afterwards. This will update the JSON file called current-links.json. Links should NEVER be removed from this file and it should not be edited manually.

Missing /tags/ links are a result of tags being removed.

Troubleshooting

In the event that the link-check scripts fails it may fail to shut down the docs development server. This will leave the server running and bound on port 1313. Attempting to run the docs server again will fail with an EADDRESS error. To kill this process you may run:

lsof -t -i tcp:1313 | xargs kill

This will kill all process running on the 1313 port.

docs's People

Contributors

adrianspeyer avatar andrewdodson avatar austins avatar beckyvb avatar bleistivt avatar bparm avatar cdepage avatar charrondev avatar daazku avatar danni-stark avatar falia15 avatar farhanvanilla avatar harolato avatar hgtonight avatar igraziatto avatar initvector avatar josephfleming avatar julievanilla avatar kaecyra avatar kaspar-k avatar lauramakesart avatar linc avatar lucvezina avatar nervoustwit avatar nikoskip avatar petrsvihlik avatar r-j avatar rmzelle avatar shaunamcclemens avatar tburry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Help: WordPress

Help: DNS/Custom Domain

Current:
(blog) dang this is old
https://blog.vanillaforums.com/help/custom-domain-name/

Needed:

  • Some more relevant examples and explanations of what to do on the host side of a domain
  • We seem to have some people trying to use “free” domains where they can’t adjust their records? List out requirements for host to support redirect to our domain and for CURL for wordpress widgets
  • Perhaps notate special requests for .co.uk if required

Help: Spam Handling Options

Current:
(docs) curbing spam with ranks http://docs.vanillaforums.com/addons/ranks/using-ranks-to-defeat-spam-or-abuse/

(docs) spam and reactions
http://docs.vanillaforums.com/addons/reactions/curating-with-reactions/

(blog) Overview
https://blog.vanillaforums.com/help/stop-forum-spam/

(blog) More Overview https://blog.vanillaforums.com/help/9-ways-to-eliminate-spam-in-your-community-forum/

Needed:

  • Check accuracy and add burner blocker to suggestions
  • Specifics about Verified Status

I'd like to swing a centralized doc that links people to appropriate options in other addons, while pulling the Stop Forum Spam info out of the blog.

Help: Posting

This section should explain how to make new comments and discussions, and go over the editor and its opens.

Suggest moderation section

  • Overview
    • inline moderation actions
    • Warnings
    • Banning
    • Abuse reaction
    • Changelog
    • etc.

There are probably some videos that can be embedded.

Update docs on Locale overrides.

The docs currently state

If you are using Multilingual to enable multiple locales, please note his override will effect all locales. There is currently no way to override multiple locales selectively.

This is no longer true. The docs should be updated with a section on overriding strings in particular locales.

SSO documentation needs to be improved

We currently have a lot of support requests about SSO and updating our documentation could help reduce the number or request we receive.

Most of our documentation is built around JsConnect but 50% of it is applicable to any SSO Provider.

Here are some major pain points:

  • Provider set as default SignIn method vs no default.
    • This changes the flow.
    • Having a default provider will make /sso default to /entry/connect/provider?id={PROVIDER_ID}
  • Redirects
    • Most people don't understand that they need to actually redirect to /entry/connect/provider after being signed in. We should explain what is the expected workflow.
    • The Target property needs its own section.
      • We also need to explain that people can use {target} which will automatically be replaced by your forum URL
  • There is no F.A.Q about common issues.

Fix analytics doc

The analytics doc is currently broken:

screen shot 2017-07-11 at 12 43 16 pm

Some term have also changed.. (We now have a mix in of "number of" and "count of")
We should also add a lexicon section.

PHP Syntax Highlighting

I noticed that code examples don't have syntax highlighting which is not cool. Can we get at least javascript syntax highlighting included?

Facebook Connect publish_actions permission

The documentation page for FB Connect should contain information on how to fill in the FB App review form. It's not clear which actions in VanillaForums require the permission -> not clear what to fill in the review form. See the following:

publish_actions is only for custom-built sharing experiences. If your app triggers a Facebook dialog to share, you won't be approved for publish_actions

I tried to disable "social share" and "social reactions" in the FB Connect add-on in Vanilla but the login url contains scope=email,publish_actions no matter what I set.

The review form:
fb_review

Mobile theme needs a ton of work

The mobile experience for our docs is basically hot garbage. Framing is frequently wrong, and the menu is taking up screen space constantly.

API v2 docs

Getting a separate API docs system online that is easy to use, beautiful, and automated.

Docs 2.0

Finishing the new version of docs.

Help: Pockets

Click targets on side menus should be larger

In the side menus only the text is clickable to navigate. I should be able to click the padding around the text and the expand/collapse arrows. Nothing should change visually. Just make the padding on the anchors bigger and the padding on the list items smaller. Probably some miscellaneous CSS foozbamery.

vanilla_forums_documentation

Canonical URLs needed

We have an issue with https links being indexed in Google. Best solution I think would be some canonicals in the meta.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.