GithubHelp home page GithubHelp logo

ionic-team / ionic-docs Goto Github PK

View Code? Open in Web Editor NEW
568.0 38.0 2.9K 170.52 MB

Home Page: https://ionicframework.com/docs

License: Apache License 2.0

TypeScript 6.58% CSS 4.19% HTML 82.83% JavaScript 3.05% SCSS 2.38% Shell 0.01% Vue 0.09% MDX 0.65% EJS 0.21%

ionic-docs's Introduction

ionic-docs's People

Contributors

adamdbradley avatar amandaejohnston avatar brandyscarney avatar bryplano avatar camwiegert avatar carlpoole avatar dependabot-preview[bot] avatar dependabot[bot] avatar dotnetkow avatar elylucas avatar giocalitri avatar imhoffd avatar ionitron avatar jaredcbaum avatar jcesarmobile avatar johnwheeler-prod avatar kensodemann avatar kevinports avatar liamdebeasi avatar ltm avatar manucorporat avatar mapsandapps avatar mhartington avatar mlynch avatar nphyatt avatar perrygovier avatar renovate[bot] avatar rtpharry avatar sean-perkins avatar thetapc avatar

Stargazers

 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ionic-docs's Issues

side-nav 2nd pass

  • auto open to the right section
  • close one section as another is opened
  • improve animation
  • mobile drawer style

Reference to ion-split-pane

I'm submitting a ... (check one with "x")
[ x] bug report
[ ] feature request

URL:
https://beta.ionicframework.com/docs/components#nav

Current behavior:
References ion-split-pane

Expected behavior:
Should not reference a removed component

Steps to reproduce:
Navigation is how users move between different pages in your app. Ionic’s navigation follows standard navigation concepts and animated transitions. Ionic's nav can also adapt to larger viewports using ion-split-pane

Other information:

Remove "Preview" tab for inline Nav content

I think we can keep the "Markup" content, but since the real "preview" is the actual demo on the right, we can just remove the inline "Preview" tab. Could look like this when we want to just show code/markup:

image

Component Demo/Preview - Button

Design for the Button component demo:

image

All of the button demo examples can up modified into a Solid (default), Outline, and Clear mode from an inline "tabs" design:

image

API Documentation not Found

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

URL:

http://localhost:3333/docs/api/action-sheet

Current behavior:

Unable to fetch api/action-sheet: Not Found

Expected behavior:

It should show the component api documentation.

Steps to reproduce:

  1. $ git clone https://github.com/ionic-team/ionic-docs.git
  2. $ git submodule update --init
  3. $ npm install
  4. $ npm run dev
  5. Open http://localhost:3333/docs/api/action-sheet

Other information:

$ npm -v
6.1.0

$ node -v
v8.11.1

Add sticky-header UX to component sections

Would be nice to add more context for which component you're previewing in the Component docs. One way to help with this is making each section's heading stick to the top of the content area, and then scroll away once the next section scrolls in.

Spacing info:
image

Will look like this:
image

Increase Headings font-sizes

Still think the font-size for our <h1> and <h2> headings could be a tad larger to help each section stand out a little more. Let's try:

docs-content h1 { font-size: 36px; ... }

and

docs-content h2 { font-size: 28px; ... }

and

docs-content h3 { font-size: 20px; ... }

Discuss usage examples

I noticed on the card usage we only have the javascript tab: https://beta.ionicframework.com/docs/api/card#usage

I understand why, because the angular usage would be the same in this case. Should we make it so that there are no tabs, maybe rename the file to something else for cases like this, or should we make it a point to show an Angular usage even if it's something such as getting the ViewChild/ContentChild or just make it a duplicate of the JavaScript usage to avoid confusion?

It's up for discussion in Slack, but I wanted to make an issue so I remembered to bring it up.

Update iOS/Android demo toggle design

Visual design and spacing update to the iOS/Android component demo platform toggle at the top. This also includes making the toggle visible at all times.

Some more info:
image

font-family: -apple-system,BlinkMacSystemFont...; font-size: 10px; color: #9da7b9 / #3880ff font-weight: 600 / 700; letter-spacing: 0.04em;

Active border bottom:
border-bottom: 2px solid #b7d4ff

[beta docs] Broken links

Ionic API doc 'git submodule' not fetched

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

URL:

Current behavior:

Expected behavior:

API doc necessary for http://localhost:3333/docs/api/* pages are not fetched when being fetched from git submodules.

Steps to reproduce:

$ git submodule update --init
Cloning into '/home/kael/Project/dev/ionic-docs/sources/component-preview'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:ionic-team/component-preview.git' into submodule path '/home/kael/Project/dev/ionic-docs/sources/component-preview' failed
Failed to clone 'sources/component-preview'. Retry scheduled
...

Other information:

Quite a bunch things wrong here..

Can you please update the readme.md in a way so that I can build api-docs without any issues. There's no api-scripts-build command, So, what's the procedure to really have all docs including API running with npm run start?

Using windows 10.

$ node --version
v9.6.1

$ npm --version
6.0.1

Currently, this is the issue after doing npm run api-docs and npm run start:
image

No link found for editors and ides

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

URL:
https://github.com/ionic-team/ionic-docs/blob/master/src/content/developer-resources/tools.md#editors-and-ides is a 404 url and shows Unable to fetch resources/editors_and_ides: Not Found in the new documentation here.

The older site content -> https://github.com/ionic-team/ionic-site/blob/master/content/docs/developer-resources/editors_and_ides/index.md

Also, there is an editor section in FAQ.

Should the content be moved over or the link removed?

[beta docs] Trailing slash inconsistency

If you surf around the new beta docs, you get URLs like https://beta.ionicframework.com/docs/building/contributing (note no trailing slash). But if you open that URL directly (e.g. by clicking that previous link) you are redirected with a 301 to https://beta.ionicframework.com/docs/building/contributing/ (note the trailing slash).

The added redirect makes opening docs pages via referring links (forum, Google, ...) a bit slower.

Solutions:
a) Remove this redirect
b) Change all links to include the trailing slash

[beta docs] Last component Virtual Scroll does not get loaded into component preview

I'm submitting a ...
[x] bug report
[ ] feature request

URL:
https://beta.ionicframework.com/docs/components/#toast

Current behavior:
If I scroll all the way down on my monitor (1080p resolution) on the component docs page, the last component that gets displayed in the component preview on the right is Toast. Since I cannot scroll further down, the Virtual Scroll-component never gets loaded into the preview:

image

Expected behavior:
I would expect that I am able to scroll further down to the point where the Virtual Scroll-component gets loaded into preview.

Steps to reproduce:

  • Open the component docs in Chrome or Firefox on a 1080p-display.
  • Scroll all the way down

Add generic phone status bars

Both our iOS and Android versions need to have some abstract reference to top/bottom utility bars. Here's what I propose for designs:

Android:
image

iOS:
image

We can probably do this pretty easily with some SVGs or even just CSS. LMK how you want to proceed when you're ready.

Using Ionic-API with Vue.js

Hi,

I evaluate the combination vue.js + Ionic v.4.0.0-alpha2 and I'm curious about how to use the Ionic-API.

I have the Slides of the demo and would like to call the method slideNext from the Vue-Component. Is that possible? If yes - how?

<ion-slides>
  <ion-slide>
    <h1>Slide 1</h1>
  </ion-slide>
  <ion-slide>
    <h1>Slide 2</h1>
  </ion-slide>
  <ion-slide>
    <h1>Slide 3</h1>
  </ion-slide>
</ion-slides>

Regards,
Ricko

npm run api-docs throws exception

Issue - all hell broke lose

Gregor@skynet /c/Development/ionic-docs (master)
$ npm run api-docs

> @ionic/[email protected] preapi-docs C:\Development\ionic-docs
> tsc -p scripts/tsconfig.json


> @ionic/[email protected] api-docs C:\Development\ionic-docs
> node scripts/build/scripts

 √ Precheck
 > Generating
   \ API Docs
     β†’ Updating...
   \ CLI Docs
     β†’ Updating...
   \ Native Docs
     β†’ Updating...
   \ Storage Docs
     β†’ Updating...
{ Error: Command failed: git clone https://github.com/ionic-team/ionic-native.git sources/ionic-native
fatal: destination path 'sources/ionic-native' already exists and is not an empty directory.

    at ChildProcess.exithandler (child_process.js:272:12)
 √ Precheck
 > Generating
   / API Docs
     β†’ NPM Installing 4.0.0-alpha.6
   / CLI Docs
     β†’ NPM Installing & Building...
   Γ— Native Docs
     β†’ operable program or batch file.
   √ Storage Docs
{ Error: Command failed: cd sources/ionic-native && ../../node_modules/.bin/typedoc --json dist/docs.json --mode modules src/@ionic-native/plugins/*/index.ts
'..' is not recognized as an internal or external command,
operable program or batch file.

    at ChildProcess.exithandler (child_process.js:272:12)
    at ChildProcess.emit (events.js:127:13)
    at maybeClose (internal/child_process.js:933:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'cd sources/ionic-native && ../../node_modules/.bin/typedoc --json dist/docs.json --mode modules src/@ionic-native/plugins/*/index.ts',
  stdout: '',
  stderr: '\'..\' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n',  context: {} }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ionic/[email protected] api-docs: `node scripts/build/scripts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ionic/[email protected] api-docs script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Gregor\AppData\Roaming\npm-cache\_logs\2018-05-23T20_15_38_156Z-debug.log

OS Window 10, latest

$ node --version && npm --version
v9.6.1
6.0.1

So I cannot compile or use the API docs at all since this issue is appearing all the time.

Where's the catch?

  1. not using npx command when calling typedoc
  2. meanwhile, you will most probably have this issue: zkat/npx#144. Fix it by following the instructions in comment: zkat/npx#144 (comment)
  3. Try building locally,
$ npx typedoc --json dist/docs.json --mode modules src/@ionic-native/plugins/*/index.ts
ENOENT: no such file or directory, stat 'C:\Development\ionic-docs\src\@ionic-native\plugins\*\index.ts'

Oh right, proper folder!

Gregor@skynet /c/Development/ionic-docs/sources/ionic-native (v5)
$ npx typedoc --json dist/docs.json --mode modules src/@ionic-native/plugins/*/index.ts
npx: installed 61 in 11.431s

Using TypeScript 2.7.2 from C:\Users\Gregor\AppData\Roaming\npm-cache\_npx\10692\node_modules\typedoc\node_modules\typescript\lib

JSON written to C:\Development\ionic-docs\sources\ionic-native\dist\docs.json

This shouldn't be such a failure :(

Documentation: Custom Page Transitions

Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[X ] 4.x

I'm submitting a ... (check one with "x")
[ ] bug report
[X ] feature request

Please do not submit support requests or "How to" questions here. Instead, please use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Currently there is no documentation on how to create custom page transitions, although it is already very easy to do by extending the existing PageTransition class.
This is a super cool feature and I really think you should add a simpel example (e.g. zoom in/out) to your documentation. I had to search quite a while to figure out how to integrate custom page transitions.

Expected behavior:
Documentation available

Steps to reproduce:
Search documentation for custom page transitions.

Redo FAQ

Everything in the "Build Errors", "Runtime Errors", "Native Errors", and "Developer Tips" pages is basically outdated, duplicated elsewhere, not useful, and/or inaccurate.

A better place for this stuff would be a knowledge base people could search.

[beta docs] Popover not working correctly

I'm submitting a ...
[x] bug report
[ ] feature request

URL:
https://beta.ionicframework.com/docs/components/#popover

Current behavior:
When opening the popover by clicking on the icon in the top-menu, you can select multiple fonts, but the font of the text only changes on the first click.

Expected behavior:
Font selection should be radio boxes and only one should be selectable.

Steps to reproduce:

Tested Environment:

Operating System:   Linux Ubuntu 18.04.
Platform:           UNIX
Browser:            Google Chrome, Version 67.0.3396.99 (Official Build) (64-bit)

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.