Giter Club home page Giter Club logo

pkp-docs's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

pkp-docs's Issues

Things to document for developers about changes in 3.2

WordPress creates "field guides" for each major release, which is like a short-hand guide for developers on the major things that have changed (technical changes). I'd like to start doing something similar from v3.2 onwards.

This is a list of things that should be documented in such a guide for v3.2:

  • Versioning.
    • Submission/Publication split.
    • Publishing/unpublishing workflow
    • STATUS_SCHEDULED
    • ASSOC_TYPE_PUBLICATION
  • New API endpoints (just link to new REST API guide)
  • New forms
  • Theme options now support all form field types (except uploads)
  • $activeTheme now available #194
  • Stats service
  • Submission/Publication services
  • PublishedArticle / PublishedMonograph are gone. Article and Monograph are now Submission. (Same with DAOs.)
  • getMany now returns an iterable object instead of an array
    • No array_map
    • Can't rewind
    • Use $submissionsIterator = Services::get(...)->getMany(...)
    • Use count($submissionsIterator) instead of !empty($submissionsIterator)
  • New signed_page_key_secret for unsubscribe
  • Changes to EntityReadInterface and new EntityQueryBuilderInterface. pkp/pkp-lib#5354
  • Application::getRequest() to Application::get()->getRequest() #187

Make floating table of contents in documents

When using the longer documents/guides and reading the longer sections, it feels cumbersome to have to scroll back to the top of the page to access the table of contents and go to a different section/chapter. It can also be hard to find the section of the TOC that you're in when you scroll back up. I think the longer guides would be easier to use if there was a floating table of contents that you could continue to see as you move down the page, centred on whatever section you're currently reading.

Help guides with one language don't need a "landing" page

Those guides which have only a single language probably don't need a landing page. We can link directly to the document in English. For example:

selection_136

Instead of having a /translating-guide page, we can remove that and just link directly to the /translating-guide/en page.

Add note about $activeTheme to Theming Guide

From v3.2, an $activeTheme variable is available in every template. This can be used to get the value of theme options: $activeTheme->getOption(...).

This information should be added to the Theme Options API in the theming guide.

Character-encoding problem when generating on production server

I've been running into the following error when attempting to build the docs on our production server:

Conversion error: Jekyll::Converters::Scss encountered an error while converting 'css/style.scss':
                    Invalid US-ASCII character "\xE2" on line 46

I don't see this error when building locally; it could be some sort of jekyll build or config issue. It can be solved though by adding the following line to the top of css/style.scss:

@charset "UTF-8";

Any objections to adding this permanently to the repo?

See: mmistakes/jekyll-theme-hpstr#185 etc.

Support alternate languages (including RTL languages)

Right now we encode lang="en_US" into the <body> tag. We need some way to support alternate languages, and particularly RTL (right-to-left) languages such as Arabic, Hebrew and Farsi.

The obvious way is to use frontmatter, which we may need to do if we ever want to get a reasonable search going. But that could get cumbersome to maintain. Maybe we can look for locale directories in the path of each page (eg - .../en/...)?

Add a proper logo

Get Sophy to generate one in-line with the forum and other logos we have.

Link to Arabic translation of Using Paypal (OJS 2)

Now that the Arabic translation of Using Paypal (OJS 2) is working, we should link to it from the card on the homepage. Here's a diff showing how that can be done:

diff --git a/_includes/cards/ojs2/using-paypal-for-ojs-and-ocs.md b/_includes/cards/ojs2/using-paypal-for-ojs-and-ocs.md
index 3db23e3..a5f030b 100644
--- a/_includes/cards/ojs2/using-paypal-for-ojs-and-ocs.md
+++ b/_includes/cards/ojs2/using-paypal-for-ojs-and-ocs.md
@@ -2,3 +2,7 @@
 ### [Using Paypal (OJS 2)](/using-paypal-for-ojs-and-ocs/en/)
 
 How to configure OJS 2 to use Paypal. [View Now](/using-paypal-for-ojs-and-ocs/en/)
+
+---
+
+<span class='fa fa-language'></span> Available in [العربية](/using-paypal-for-ojs-and-ocs/ar/).

Add footer

  • PKP logo
  • Link to PKP
  • Link to docs hubs
  • Link to support forum

Update author submission/registration guidelines

From Antti-Jussi:

noticed that here: https://docs.pkp.sfu.ca/learning-ojs/en/authoring

It says "To make a submission to an OJS 3.1 journal, you will first need to register as an Author (see Registering with a Journal). After that, when you login, you will be taken to your Dashboard."

As of 3.1.1.2 that of course is not true anymore, you just need a user account and you can obtain the role during the submission process.

(also the link there is broken)

Complete main developer documentation

This issue will be used to track progress on the main developer documentation content, as well as store some notes for unfinished sections.

  • Introduction
  • Getting Started
  • Architecture
    • Request
    • Routes
    • Handlers
    • Authentication
    • Authorization
    • Services
    • Entities
    • Database
    • Plugins
  • Frontend
    • Link to theming guide if they're just looking to theme.
    • Template Manager
      • Always escape in smarty templates unless you have a good reason not to
      • Add note about {debug} smarty feature
    • UI Library
      - reset focus after modal is closed
      (and generally about kicking off something)
      • How to mount a grid inside of a Vue component and refresh it.
      • How to load a modal
    • Components
    • Controllers
      • (deprecated)
  • Utilities
    • Application
    • Cache
    • Config
    • Email
    • File
    • Hooks
      • Return false in a hook to allow other hooked functions to run.
      • hook priorities
    • Notifications/Logs
    • Translation
      • How locales work (supportedLocales, supportedFormLocales, supportedSubmissionLocales, fallbacks)
    • Updates
    • Validation
  • Resources
    • Postman API file
    • GenerateMetrics tool
    • GenerateSubmissions tool
    • How to create a URL to what you want (included in architecture)
    • How to build API docs to match your build
    • Glossary of terms? (Context, Galley, ...)
    • CacheBuster plugin
    • Vagrant
    • Code Standards
    • Technical Reference: http://pkp.sfu.ca/ojs/docs/technicalreference/2.1/
    • No generated hook names or locale keys
  • Other
    • Email
    • Metrics
    • ASSOC_TYPE
    • Tests
      • how to do do a submodule commit to get the tests running
      • how to get the tests running locally
    • Versioning (when merged to master). resources: Versioning

Add Plugin Guide

Add a Plugin Guide like the Theming Guide.

Suggested outline:

  • Intro

  • Blocks

  • Import/Export

  • Reports

  • Themes

  • Generic

  • Other

  • Packaging a plugin, getting it on the plugin gallery

  • Examples

    • Adding field to form/schema
    • Routing request to own handler
    • Theming

Add a feedback form to the docs hub

As discussed at yesterday's DIG meeting, it would be great to have a mechanism for users to submit feedback on the docs hub. This could be done as an embedded form.

Hub sections should only have one highlighted card

The card highlights work best when only one card is highlighted per hub. With more than one, the eye doesn't know where to settle and we lose the benefit of highlighting.

selection_137

Generally, larger cards will be more prominent. So one solution here would be to create a section for the links which will increase the card's presence in the list:

selection_139

If that's not enough, I could implement a banner-like display:

selection_138

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.