Coder Social home page Coder Social logo

kos_doc's People

Stargazers

 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

kos_doc's Issues

fix sensors docs.

The following problems exist:

1 - The example for LIST SENSORS shows code that fails if you run it, because it tries using a reserved keyword "SENSORS" as a variable name. FIX: Change "FOR SENSOR IN SENSORLIST" to "FOR S IN SENSORLIST".

2 - The Page for SHIP:SENSORS:GRAV claims that it returns a number rather than a vector. It actually returns a Vector.

Document Config

Document the config suffixed structure and the config file.

I added some new pages but don't know how to regen content

I added some new ".md" files to the documentation and made a few edits to existing ones, but I don't know how to tell the system to regenerate the documentation from the source files, and therefore I'm not certain whether or not the links I made to them are right (I can't test following the links yet because the pages they point to give 404 Not Found errors since the docs haven't been regenerated yet.).

RUN documentation doesn't mention arguments.

The File i/o page claims that RUN just takes one argument - the filename - it fails to mention how to pass arguments.

The Variable page does mention DECLARE PARAMETER but the example of how to use it is wrong and needs fixing.

Document the frozen Update() behavior

As per issue #128 in the main code, document the fact that things like the clock and the state of consumables and positions and velocities and so on of the game are frozen in time during an update tick, and therefore you probably want a wait 0.0001 in most loops.

Need documentation on scoping contexts.

source/command/variable describes the notion of a "context level". Having read some of the code I recognize that this means "current subprogram or when/then", but there's no way a user of kOS is going to know what that means. Even if they're a programmer who knows a bit about OS terminology who knows what a "context record" means they still won't know how that concept maps to a kOS context.

In general, I think the documentation needs a way to explain to people how the scoping works:

If you create a variable in one place, what other places can you access it?

Does the 'declare' statement only work with SET variables, or will it let you define the scope of a LOCK variable as well?

If you are in a sub-program and create a variable implicitly using 'set' or 'lock' without a 'declare' statement, will the main program be able to see it or is its context purely local?

If you try to access a variable name but it doesn't exist in the current context, does it look for it in a more global context?

I'd be willing to write the documentation for it, but I'm not sure I'm qualified to, as I don't actually know all the answers to these questions myself, and have always been a bit confused by the behavior of this.

This looks like something that @marianoapp would know the most about.

LIST documentation repeated in two places. Hard to maintain?

As I was editing the List documentation to add the new [] syntax, I noticed that LIST is documented in two entirely different locations in the documentation:

source/structure/list.md

and

source/command/list.md

I only edited the version in source/structure/list.md, and didn't repeat the same information in source/comand/list.md because I'm wondering if this redundancy should be removed instead, as it makes documentation maintenance messy.

If I was doing this on a filesystem that supported symbolic links, I'd make source/command/list.md be a pseudonym that just points to source/structure/list.md so you can get to the same page through two different paths. I doubt I can do that with a git archive, though. Perhaps one can be made into just a stub of a page containing nothing more than a hyperlink to the other page.

List of things in 0.12.2 release

Things in need of documenting:

(Released items can be documented now.
Pre-released features should be held off until they become fully released.)

Released Pre-released Feature
x Vector Renderer
x RemoteTech doesn't work yet (mention it)
x srfprograde
x body has :obt suffix
x part has :ship suffix
x Trigger Preserve keyword.
x Trigger behavior - document that it must fall through without staying in a loop or it freezes KSP.
x "Control from Here" now changes ship:facing orientation.
x File Editor
x MAPVIEW bound variable.

Is there a way to attach a document change to a feature release?

For proper completeness I wanted to put the ELSE syntax into the documentation to coincide with whenever the release of that happens, but I didn't want the documentation to claim the ELSE syntax was already implemented, prior to that release going out.

Is there a good way to do that? i.e. is there such a thing as the 'development' fork of the documentation?

Updating to use relative links

Everywhere there's a link like this:

    [visible text](link text) 

In the markdown script, if the link text is an absolute path from root (starts with "/KOS_DOC/") then it means I can't click through the links on my own locally generated copy because the file structure of the generated text changes the name of that root dir. To make it easier to test the docs first before putting them on the public site, I need to change all the links to be relative (i.e. "../structure/vector/" as opposed to "/KOS_DOC/structure/vector/"). That way they will work identically whether on the local copy or hosted publicly on the github file server.

PLEASE MAKE ISSUES IN KSP-KOS/KOS INSTEAD

Documentation is no longer in a separate fork, and we've gotten the docs into the main branch of https://github.com/KSP-KOS/KOS as just a subdirectory of the branch under the folder doc/

This is stale information to be ignored.

To add a document issue or pull request, please go here instead:
https://github.com/KSP-KOS/KOS_DOC_DEV
This repository you're looking at now is the static location that the published documents end up in after they've been edited. Most of the time, edits are not made in this fork. It is simply cloned directly from the development fork.

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.